Skip to main content

Opvious Python SDK

Project description

Opvious Python SDK CI Pypi badge

This package provides a lightweight client for interacting with the Opvious API. This SDK's functionality is focused on running attempts; for other operations consider the [TypeScript CLI or SDK][].

Quickstart

First, to install this package:

pip install opvious[aio]

You'll then need an API access token. You can generate one at https://hub.opvious.io/authorizations. Once you have it, you can instantiate a client and call its method:

import opvious

# Instantiate an API client
client = opvious.Client(TOKEN)

# Assemble problem inputs
builder = await client.create_inputs_builder('my-formulation')
# Add dimensions and parameters...

# Start an attempt
attempt = await client.start_attempt(builder.build())

# Wait for the attempt to complete
outcome = await attempt.wait_for_outcome()

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

opvious-0.3.0.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

opvious-0.3.0-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

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