Skip to main content

A Python Client Interface for the Daisi Platform

Project description

About PyDaisi

Full documentation on the features of the PyDaisi client, as well as the platform itself, are available at the Daisi Documentation. Below is a quick overview of the basic PyDaisi usage:

Installing PyDaisi

PyDaisi can be installed with PIP:

  • pip install --upgrade pydaisi

Using PyDaisi

You can execute a Daisi simply by:

  1. Connecting to the Daisi
  2. Calling a top-level function fo that Daisi, providing arguments as needed

In this example, we connect to the Titanic Statistic Daisi, and call two different top-level functions (median and percentile):

from pydaisi import Daisi

# instantiate a Daisi object
daisi = Daisi("Titanic Statistics")

# call a Daisi function. You can also use positional parameters: daisi.median("Age")
med = daisi.median(field="Age")

print(f"Median Age of Titanic Passengers was: {med.value}")
print(f"10th Percentile of Titanic Passengers' Ages was: {daisi.percentile('Age', .1).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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pydaisi-0.3.2.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydaisi-0.3.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for pydaisi-0.3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 358ac242e5f8d92a595bb1b64cf853ba5522beed4e87c170e83ba26da457368b
MD5 d0ccaea9baaef1b011b79d77c944210a
BLAKE2b-256 fdb24ccb1dbde2a7224657074c30ad49ef5199b7b909d1f39ef6d1e3d4dba8d4

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