Simples steps for using the PyDaisi SDK
Preliminary tasks
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.dispatch("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()})
Metadata
Release files for pydaisi 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pydaisi-0.2.4.tar.gz | 12.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydaisi-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.1 kB
Release files / pydaisi-0.2.4.tar.gz
| Download URL | pydaisi-0.2.4.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c10d91e92d857c6b247dcad378ead82a3b83ce780b7be095f46181fa57f9c89
|
|
BLAKE2b-256 checksum How to use checksums |
d02649fbbc1cf26d8f5d51b34fc70ff73e3bd8b014e8c804bced3adfa1033799
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.0
|
Release files / pydaisi-0.2.4-py3-none-any.whl
| Download URL | pydaisi-0.2.4-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc96f997b76f18b4d45121032c8441b9d0e2666c6249ac54e42939ca3327ede5
|
|
BLAKE2b-256 checksum How to use checksums |
eb2e1df9f93cfef504e2ce18cfae74747d5ac003b358b5d2f2164866f9b4322f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.0
|
Security for pydaisi 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.