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.1.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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roam-python-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 65f120e6465d08df3dafa049a1afee4872f9b484c6733f0535bc6b302ffd2fb8
MD5 5088157b161ebecb1c5f251ad39b5e4b
BLAKE2b-256 7c621b19bd8eb1269776d80f8e64507bbecd35dd7f2daf28d42b754bc9befcf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roam_python-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c98f7da98642d7b0eb42fee67d15791758cd83e89e8e01681103c6238b55ade
MD5 4ea047b5481018cdfac62371370d3401
BLAKE2b-256 70ee15fdbd3052cf1a5355da76f6da80ae9e1b67a635981f3c048317b8c6e4c2

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