Skip to main content

A Python interface for the Daisi Platform

Project description

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()})

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.4.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

pydaisi-0.2.4-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pydaisi-0.2.4.tar.gz.

File metadata

  • Download URL: pydaisi-0.2.4.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pydaisi-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0c10d91e92d857c6b247dcad378ead82a3b83ce780b7be095f46181fa57f9c89
MD5 3caee79eb85fb31d3295d41ee0167941
BLAKE2b-256 d02649fbbc1cf26d8f5d51b34fc70ff73e3bd8b014e8c804bced3adfa1033799

See more details on using hashes here.

Provenance

File details

Details for the file pydaisi-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: pydaisi-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pydaisi-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc96f997b76f18b4d45121032c8441b9d0e2666c6249ac54e42939ca3327ede5
MD5 968d3c3934c8fc35531c6e05f6b9bca6
BLAKE2b-256 eb2e1df9f93cfef504e2ce18cfae74747d5ac003b358b5d2f2164866f9b4322f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page