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

Uploaded Source

File details

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

File metadata

  • Download URL: reswarm-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 59d66faef22f2ab6de22bbbf38db5b1bd16eee49c467f41bdb60ccfaff1757ab
MD5 da4783c3e04858cd5b01cb840888759d
BLAKE2b-256 0c23cbf95de7f1d6a9b16bd50ffa4ac324e3d48562eeeaada49126b03d5a2e25

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