Skip to main content

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


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.8.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file reswarm-0.0.8.tar.gz.

File metadata

  • Download URL: reswarm-0.0.8.tar.gz
  • Upload date:
  • Size: 4.0 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

Hashes for reswarm-0.0.8.tar.gz
Algorithm Hash digest
SHA256 014b52606d93218497eaa716d6a0c10ea3cf1391925f95e07189570e00644d80
MD5 3982ad03a133b0d290c368df2ea2d1eb
BLAKE2b-256 45cad558b6e3b07157d2c79d30915de2273794928176b85e166fd35d876bf435

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page