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.2.tar.gz
(45.7 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.2-py3-none-any.whl
(71.8 kB
view details)
File details
Details for the file pysage3-1.0.2.tar.gz.
File metadata
- Download URL: pysage3-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e19b983f323acbc9fd41f46683e4e10e9ec43d1c807c99445507730b03e97206
|
|
| MD5 |
e0247b739322593abf8ad1ef995c1a7f
|
|
| BLAKE2b-256 |
3329cf481e9bfb7697f1e1215574c9bc82b3b6b825deded4b6ce8584de89bcf3
|
File details
Details for the file pysage3-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pysage3-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ed8087b77916d69b633446dd69a02f9c4aedc1153ae502cf903a24850ac2953
|
|
| MD5 |
aedf153d1a669af215f409ccdac81bf8
|
|
| BLAKE2b-256 |
256b330d21c7b9754f7fc6fc5de9112401413d753d1f2934cc548ee50d700469
|