Skip to main content

SAGE3 API

Project description

Python API to SAGE3

Configuration

.env file or environment variables

SAGE3_SERVER=example.com
ENVIRONMENT=production
TOKEN= XXX_JWT TOKEN for SAGE3 Auth_XXX

Loading

from foresight.config import config as conf, prod_type
from foresight.Sage3Sugar.pysage3 import PySage3
# Connect to the SAGE3 server
ps3 = PySage3(conf, prod_type)

Examples

See https://sage-3.github.io/docs/SAGE3-API-in-SageCell

from foresight.config import config as conf, prod_type
from foresight.Sage3Sugar.pysage3 import PySage3

room_id = %%sage_room_id
board_id = %%sage_board_id
app_id = %%sage_app_id
selected_apps = %%sage_selected_apps

ps3 = PySage3(conf, prod_type)
smartbits = ps3.get_smartbits(room_id, board_id)
bits = [smartbits[a] for a in selected_apps]
for b in bits:
  print(b)

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

pysage3-1.0.5.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

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

pysage3-1.0.5-py3-none-any.whl (71.8 kB view details)

Uploaded Python 3

File details

Details for the file pysage3-1.0.5.tar.gz.

File metadata

  • Download URL: pysage3-1.0.5.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for pysage3-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ac9e8c5b49ce6eb4715152bb2827b1880a12f2bc838d62300c432b5e7f3c5f47
MD5 e9c8f154c99b4f182e83729926f17748
BLAKE2b-256 46a8965a34cd967f64004e86fabba4898dc99bdd026d23b47a7450a7df044cec

See more details on using hashes here.

File details

Details for the file pysage3-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pysage3-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 71.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for pysage3-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3c30ab73b2fa0ffd7088f935b9534715f33babfc37ad2696b8b9724d1d4cb979
MD5 dc4fb27d08fe0fa49f89e2758478a52d
BLAKE2b-256 6ea218dcd67044ea57e1b807c4a952a54e0403cbfd21d4907354a365a81511eb

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