GoodWan python client
GoodWan IoT python client
Getting Started
import datetime
from goodwan_client import Client
# Use system/pytz timezone name e.g. Europe/Moscow
client = Client("login", "password", "timezone")
t_from = datetime.datetime(2019, 1, 1, 0, 0, 0)
t_to = datetime.datetime(2019, 3, 1, 23, 59, 59)
events = client.events(t_from=t_from, t_to=t_to)
# events is a list of goodwan_client.event.Event class
for event in events:
print(event)
"""
<goodwan_client.event.Event id_event=123123123, id_system=0, id_transmitter=123,
data_type=101, data=2525.0, data_ext=0.0, signal_lvl=0,
timestamp=2019-02-28 05:15:22+03:00,
device=<goodwan_client.devices.TempSensor data=2525.0, data_ext=0.0, temp=2525.0>,
device_name=temp_sensor
>
"""
For more info, see classes goodwan_client.event.Event and goodwan_client.devices.*
Prerequisites
- Python >= 3.5
Installing
pip install goodwan_client
Authors
- Dmitry Konovalov - Initial work - kanavis
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Metadata
Release files for goodwan-client 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| goodwan_client-0.3.2.tar.gz | 6.4 kB | Without provenance | Details for goodwan_client-0.3.2.tar.gz |
Release files / goodwan_client-0.3.2.tar.gz
| Download URL | goodwan_client-0.3.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbc2eb3b02b07374cb1536e0dbfa4deaf35dfef47dedbf64b06d1efb92d45b45
|
|
BLAKE2b-256 checksum How to use checksums |
5ce1ce500990560ebfeb95f701ad04c6e846e72260f93efcb61aa4a98f0718ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Security for goodwan-client 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.