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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reswarm-0.0.11-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reswarm-0.0.11.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

Hashes for reswarm-0.0.11.tar.gz
Algorithm Hash digest
SHA256 fa5490fb5eae9c474c42e9f748596e2e233c220e895d071378655da8a62f1708
MD5 d97c041c6e69f3fb1e3b4bf1bd1493bf
BLAKE2b-256 66b5ff7c97295c9f6ab8d20dd46326408f0085902acc855ca99f915068a11327

See more details on using hashes here.

File details

Details for the file reswarm-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: reswarm-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for reswarm-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 23b9794de78cd29faa135f07604dc621a614b528c54e7e82cc3d05f2a445819f
MD5 2db62ebad451fe2c9fda7ab69bc85c90
BLAKE2b-256 23ce35c4a3b497adda181e9f1c232fcc4a235b172cf436a3558802e906d2db73

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