Skip to main content

Opvious Python SDK

Project description

Opvious SDK

https://opvious.ai

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.18.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

opvious-0.1.18-py3-none-any.whl (11.8 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