orvanta
The core client for the Orvanta platform.
Usage
Basic Usage
The orvanta package has several methods at the top-level for the most frequent operations you will need.
The following are some common examples:
import time
import orvanta
def main():
# Get the value of a variable
orvanta.get_variable("u/user/variable_path")
# Run a script synchronously and get the result
orvanta.run_script("f/pathto/script", args={"arg1": "value1"})
# Get the value of a resource
orvanta.get_resource("u/user/resource_path")
# Set the script's state
orvanta.set_state({"ts": time.time()})
# Get the script's state
orvanta.get_state()
Advanced Usage
The orvanta package also exposes the Orvanta class, which is the core client for the Orvanta platform.
import time
from orvanta import Orvanta
def main():
client = Orvanta(
# token=... <- this is optional. otherwise the client will look for the OV_TOKEN env var
)
# Get the current version of the client
client.version
# Get the current user
client.user
# Convenience get and post methods exist for the /openapi.html API reference
# served by your Orvanta instance (e.g. https://your-instance/openapi.html#/)
# these are thin wrappers around the httpx library's get and post methods
# list worker groups
client.get("/configs/list_worker_groups")
# create a group
client.post(
f"/w/{client.workspace}/groups/create",
json={
"name": "my-group",
"summary": "my group summary",
}
)
# Get and set the state of the script
now = time.time()
client.state = {"ts": now}
assert client.state == {"ts": now}
# Run a job asynchronously
job_id = client.run_script_async(path="path/to/script")
# Get its status
client.get_job_status(job_id)
# Get its result
client.get_result(job_id)
Metadata
Release files for orvanta 2.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| orvanta-2.4.0.tar.gz | 25.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orvanta-2.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.8 kB
Release files / orvanta-2.4.0.tar.gz
| Download URL | orvanta-2.4.0.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68ead63942e0835f60edffe98e44dc0790664eda4480c581cea73823d9f5dc2e
|
|
BLAKE2b-256 checksum How to use checksums |
7cfcb5976fed967430ea71686ac3bea41e3e05d1d380a273fa13040d71435b8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logRelease files / orvanta-2.4.0-py3-none-any.whl
| Download URL | orvanta-2.4.0-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc3f1514d8cd3503a66917316e721b1de040f1ffa8c8575470aae62429ee3c41
|
|
BLAKE2b-256 checksum How to use checksums |
b1e2fdc803546c5a61a5e42b28dd6134ba909923f796eabc5e0c33f75571884c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency log