A Python interface for the Daisi Platform
Project description
Simples Steps for PyDaisi SDK
Preliminary Steps
Install with PIP:
pip install pydaisi
(Optional) Set your personal access token:
Create your personal access token
Set it in the environment:
export DAISI_ACCESS_TOKEN=a1b2c3d4e5f67890abcdef124567890
or in a .env
file:
DAISI_ACCESS_TOKEN=a1b2c3d4e5f67890abcdef124567890
Using PyDaisi
from pydaisi import Daisi
# instantiate a Daisi object
daisi = Daisi("my-pebble-tutorial")
# call a Daisi function. You can also use position parameters: daisi.median("London")
temp = daisi.median(city="London")
print(f"Median temperature in London was: {temp.value}")
# call a function but return without waiting for it to complete
temp2 = daisi.dispath("median","Paris")
# see if it's done
if temp2.get_status() == "FINISHED":
# get the results the same way as the blocking call:
print("Median: ", {temp2.value})
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
pydaisi-0.2.0rc5.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for pydaisi-0.2.0rc5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d8763dc1096d931f7df7178fbcf246473efd002ba1483fc823a8c463a2c1278 |
|
MD5 | 998f3aafc6cf510635ff78332243cbb7 |
|
BLAKE2b-256 | ffde6b41493ef1ce14f89f274f054745a4f75a986ea40d40fc0a65d74a7159ec |