Skip to main content

SDK for the Uncertainty Engine

Project description

Uncertainty Engine banner

Python SDK for the Uncertainty Engine

PyPI Python Versions

⚠️ Pre-Release Notice: This SDK is currently in pre-release development. Please ensure you are reading documentation that corresponds to the specific version of the SDK you have installed, as features and APIs may change between versions.

Requirements

  • Python >=3.10, <3.13
  • Valid Uncertainty Engine account

Installation

pip install uncertainty-engine

With optional dependencies:

pip install "uncertainty_engine[vis,notebook,data]"

Usage

Setting your username and password

To run and queue workflows you must have your Uncertainty Engine username and password set up. To do this you can run the following in your terminal:

export UE_USERNAME="your_username"
export UE_PASSWORD="your_password"

Creating a client

All interactions with the Uncertainty Engine API are performed via a Client. The client can be defined as follows:

from uncertainty_engine import Client

client = Client()

With an instantiated Client object, and username and password set as environmental variables, authentication can be carried via the following:

client.authenticate()

Running a node

from pprint import pprint

from uncertainty_engine import Client, Environment
from uncertainty_engine.nodes.basic import Add

# Set up the client
client = Client()
client.authenticate()

# Create a node
add = Add(lhs=1, rhs=2)

# Run the node on the server
response = client.run_node(add)

# Get the result
result = response.outputs

pprint(result)

For more some more in-depth examples checkout our example notebooks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uncertainty_engine-0.13.0.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uncertainty_engine-0.13.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file uncertainty_engine-0.13.0.tar.gz.

File metadata

  • Download URL: uncertainty_engine-0.13.0.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.5 Darwin/25.2.0

File hashes

Hashes for uncertainty_engine-0.13.0.tar.gz
Algorithm Hash digest
SHA256 67ca752a6bfc105d1a5c611138967f8edf481d444c3a2fb57c92ab546c7852f2
MD5 50c83690a6e6625984f1394fbfe1c942
BLAKE2b-256 a4fe21514fdf5d5bb5d9759abc1bea3a6296f9899f019383835c8e46bd8afb4e

See more details on using hashes here.

File details

Details for the file uncertainty_engine-0.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uncertainty_engine-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd01c6c1a327d8495ea6e65d7a1504f0d966e7cec0d085119ef3b3103b338ce5
MD5 b04189ef144f7242676278c3a6173dfc
BLAKE2b-256 581e4c31afe89a591f474dff3b5e9bd4342a9f5e261345d0f6055956cbffaacb

See more details on using hashes here.

Supported by

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