Skip to main content

Roam python SDK to listen to location updates.

Project description

QuickStart Guide

To import package

from roam import Client

To get locations for all users at project level

client = Client(API_KEY=)

To get locations for one user

client = Client(API_KEY=, USER_ID=)

To get locations for a list of users under the same project

USER_LIST = ["user_id1", "user_id2", ...] client = Client(API_KEY=, USER_ID=<USER_LIST>)

To get locations from a group of users

client = Client(API_KEY=, GROUP_ID=<GROUP_ID>)

To start listening to locations

client.sub()

To stop listening to locations

client.disconnect()

By default the SDK prints out the locations. If the locations are required to any other output, then please use a callback function.

Define callback function and pass in client initialization

def custom_callback_function(payload): # print(payload) # save_to_file(payload) # log(payload)

client = Client(API_KEY=, CALLBACK=<custom_callback_function>)

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

roam-python-1.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

roam_python-1.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file roam-python-1.1.0.tar.gz.

File metadata

  • Download URL: roam-python-1.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for roam-python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 775d901c66ab743c3b781254ac34df81b441c83edeaf39ced82cbd55cc31f9b3
MD5 4635672b7908a1c3e0934c27e013a947
BLAKE2b-256 0ccfe49dcc270a69aa0625c9bfd2aaf6b6ce6661bf178125d8e4b9ab32692116

See more details on using hashes here.

File details

Details for the file roam_python-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: roam_python-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for roam_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5356e920305ef9df9c4ac189e71f871e2adfecc41fac2eefdf4df01a64fd28d
MD5 03bb21adf47cb0d3e95420c0ec0e952d
BLAKE2b-256 fef7183254ca9149b39bb8f90b63983a176b840d78427e1e33f7ebed421b0708

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