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
outcome = await client.run_attempt(
formulation_name='my-model',
# inputs...
)
Jupyter integration
Install the module as usual:
import piplite
await piplite.install('opvious')
You can then register a specification directly from all Markdown cells in the notebook:
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.16.tar.gz
(10.0 kB
view hashes)
Built Distribution
opvious-0.1.16-py3-none-any.whl
(11.8 kB
view hashes)