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
Release history Release notifications | RSS feed
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.4.tar.gz
(50.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pysage3-1.0.4-py3-none-any.whl
(89.3 kB
view details)
File details
Details for the file pysage3-1.0.4.tar.gz.
File metadata
- Download URL: pysage3-1.0.4.tar.gz
- Upload date:
- Size: 50.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b1f859e1ee57eb45bda919ca980d11d183c12b184ca67401c9ea3acb9217dab
|
|
| MD5 |
bf01d8f036aebd9b9c903c9115a1d6d8
|
|
| BLAKE2b-256 |
5c5c58128b5cc7529a3a55abad8d698c0d235bf226295245d299a6531d48cb6c
|
File details
Details for the file pysage3-1.0.4-py3-none-any.whl.
File metadata
- Download URL: pysage3-1.0.4-py3-none-any.whl
- Upload date:
- Size: 89.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4532f7eef454dfe84482b5fbeb8dda0d51ebf78885d0874ab1f866b241227513
|
|
| MD5 |
0731ac62812569465615af33ff4d3e10
|
|
| BLAKE2b-256 |
ccc0c23942f5938eab8997aafe5ee1169db4c2e1cd4290d8935ca3e8cc62a187
|