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

Uploaded Source

File details

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

File metadata

  • Download URL: reswarm-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 33ec2285b3e41985001cfb31a7e2aa7f49e7229b2a7a3f2d18727a6227e58f15
MD5 5c79b546b9061d44ad82e40db57a1278
BLAKE2b-256 02d5c4890b4980226107ebd04916617abbb7c500319c0e500d49d795b73dc64a

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