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

Uploaded Source

File details

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

File metadata

  • Download URL: reswarm-0.0.6.tar.gz
  • Upload date:
  • Size: 3.9 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.6.tar.gz
Algorithm Hash digest
SHA256 f977ac4a38f73664482caeebfffdc75da0e7cbc89e7942577a905c4888c03d9e
MD5 467417e945a794e904750c0d9879fae0
BLAKE2b-256 3948b2a52db8f067d8ade8c0458acd90f3cc36d76a107fea0e167e1242759709

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