Opvious Python SDK
Project description
Opvious Python SDK
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, install this package and have an API access token handy (these can be generated here).
pip install opvious[aio]
With these steps out of the way, you are ready to solve any of your optimization models!
import opvious
# Instantiate an API client from an API token
client = opvious.Client(TOKEN)
# Assemble inputs for a registered formulation
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.2.tar.gz
(9.3 kB
view hashes)
Built Distribution
opvious-0.3.2-py3-none-any.whl
(12.2 kB
view hashes)