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=<API-KEY>)

To get locations for one user

client = Client(API_KEY=<API-KEY>, USER_ID=<USER-ID>)

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

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

To get locations from a group of users

client = Client(API_KEY=<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=<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.2.tar.gz (3.0 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.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roam-python-1.1.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for roam-python-1.1.2.tar.gz
Algorithm Hash digest
SHA256 c7a721e50e2a9a6d2ede4ff118cec409348e6cd79cdd693cb769fb467a91c68d
MD5 5c002ff2377bc4f0a2c11e2e550b866d
BLAKE2b-256 9083c5277b68bc25e0156ed15c67dfe7255972c1fdfb2fad494c49b827ab6791

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roam_python-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for roam_python-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 302ee38b5dec53d90e5d12bc3bcb1d7d1e84d9f57d53089cf1e2296a76a860b9
MD5 fd3c5fac12d644d5ae5098bf6fa73430
BLAKE2b-256 1c761e3a19a95c3427dfaeb3e416666d35b00409995a4c9bb1dbda05d9355e4a

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