Aids users in publishing data to a Record Evolution Datapod
Project description
reswarm-py
About
Makes publishing data to a Record Evolution Datapod incredibly easy!
Usage
from asyncio.events import get_event_loop
from reswarm import Reswarm
async def main():
rw = Reswarm(serial_number="7652ee0b-c2cb-466a-b8ee-fec4167bf7ce")
result = await rw.publish('re.meetup.data', {"temperature": 20})
print(result)
if __name__ == "__main__":
get_event_loop().run_until_complete(main())
Options
The Reswarm __init__ function can be configured with the following options:
{
serial_number: string;
}
serial_number: Used to set the serial_number of the device if the DEVICE_SERIAL_NUMBER environment variable does not exist. It can also be used if the user wishes to authenticate as another device.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reswarm-0.0.10.tar.gz
(4.1 kB
view details)
File details
Details for the file reswarm-0.0.10.tar.gz.
File metadata
- Download URL: reswarm-0.0.10.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c26fd8522560258f7809f3b6a0cc5b5aa2417cc6dac970065fed5bf681da98b
|
|
| MD5 |
d30dd9875f9ce62b4146ce88b4096eeb
|
|
| BLAKE2b-256 |
8bd984d70a327713a36d05158f080780aaaa78ba3aa191364b824060892852cf
|