Metadata-Version: 2.1
Name: device-ops
Version: 0.1.1
Summary: Admin tool for device operations over MQTT.
Author: surdouski
Author-email: michael.surdouski@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: daemonize (>=2.5.0,<3.0.0)
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Requires-Dist: rich (>=13.8.0,<14.0.0)
Requires-Dist: sniffs (==0.6.2)
Description-Content-Type: text/markdown

# Device Ops (dops)

Manage settings of devices through a command line client instead of over MQTT.


## Config files

2 files are needed:

- .config
- .secrets


### .config

```dotenv
LOCATION=test
```

### .secrets

```dotenv
MQTT_SERVER_IP=foo.com
MQTT_SERVER_PORT=1234
MQTT_SERVER_USER=my_user
MQTT_SERVER_PASS=my_password
```

## Usage

```bash
# list devices
dops devices
# list settings for a device
dops devices <device_id>
# show a specific setting
dops devices <device_id> <setting_id>
# update the value of a setting (both --set and --type are required)
# valid options for [--type] : --type=float,str,bytes,bytearray
dops devices <device_id> <setting_id> [--set]/[-s] <value> [--type]/[-t] <_type>
```
