Opvious Python SDK
Project description
Opvious SDK
Quickstart
First, to install this package:
pip install opvious
You'll then need an API access token. You can generate one at https://console.opvious.dev/authorizations. Once you have it, you can instantiate a client and call its method:
import opvious
client = opvious.Client(ACCESS_TOKEN)
# Create a new model formulation
await client.register_specification(
formulation_name='my-model',
source_text='...'
)
# Attempt to solve a formulation
solution = await client.run_attempt(
formulation_name='my-model',
# inputs...
)
Jupyter integration
From within a Jupyter notebook, you can register a specification directly from all Markdown cells:
import opvious.jupyter
opvious.jupyter.save_specification(client=client, formulation_name='my-model')
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.1.6.tar.gz
(7.4 kB
view hashes)