Skip to main content

Roam python SDK to listen to location updates.

Project description

QuickStart Guide

pip install Geospark-python-sdk

To import package

from roam import Client

To get locations for all users at project level

client = Client(API_KEY=)

To get locations for all users at user level

client = Client(API_KEY=, USER_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.0.1.tar.gz (2.8 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.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roam-python-1.0.1.tar.gz
  • Upload date:
  • Size: 2.8 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.0.1.tar.gz
Algorithm Hash digest
SHA256 1ea85674eddc3d950b76492a44cbdf8057226475233c7ad7c06310789df46730
MD5 173614273ee33df0185aca2f3e70ed9b
BLAKE2b-256 31393b7af4df22462599736f850a53c0e4156bfc283c30f375356b52ad858aa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roam_python-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da08858ec13c022b5e601042bfa8c468f2dab7438dc424a372671eb5389f9656
MD5 85944eee566e1f25eab2169977cd0895
BLAKE2b-256 29c6bcff726efabc9557f4a7d99131fcf264ad523c2fb12c950ca6c7036b99be

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