Skip to main content

deqio-client

Dependency-free Python SDK for a running Deqio decision server. It covers the public decision routes — /v1/noul, /v1/choice (/v1/decision), /v1/shared, /v1/score, /v1/multi, /v1/act, /v1/soam, /v1/systemone — and returns the server's JSON responses unchanged, provenance included (provenance.provider, remote_request_id, cost_estimate). The response shapes are documented by the server's OpenAPI 3.1 document (GET /openapi.json, deqio openapi).

pip install deqio-client        # or: uv add deqio-client
from deqio_client import DeqioClient, DeqioError

client = DeqioClient("http://127.0.0.1:8787")

yes_no = client.noul("Checkout works after retry, but payment latency is elevated.", "Is checkout degraded?")
print(yes_no["decision"], yes_no["probabilities"])

pick = client.choice(
    "A customer reports that the API returns HTTP 500 after the latest deployment.",
    "Classify the report.",
    {"bug": "An existing function no longer works", "feature": "A request for new functionality"},
)
print(pick["decision"], pick["provenance"]["provider"]["name"])

severity = client.score(
    "Checkout works after retry, but payment latency is elevated for some customers.",
    {"instructions": "Rate the operational severity.", "criteria": ["low", "medium", "high", "critical"]},
)
print(severity["answers"]["decision"])

try:
    client.choice("state", "Which?", [])
except ValueError as error:          # refused before any request
    print(error)
try:
    client.noul("state", "Is it?", input_policy={"require_complete": True}, contract=True)
except DeqioError as error:          # the server's own rejection: status + detail
    print(error.status, error.detail)

Every method mirrors one route and one request shape; nothing is retried, cached or defaulted silently. A server that cannot be reached raises DeqioConnectionError. The package version follows the Deqio release it was built with (deqio_client.__version__).

Metadata

Release files for deqio-client 0.6.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deqio-client 0.6.5
File Size Uploaded Provenance Actions
deqio_client-0.6.5.tar.gz 6.2 kB With provenance Details for deqio_client-0.6.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deqio-client 0.6.5
File Interpreter ABI Platform Actions
deqio_client-0.6.5-py3-none-any.whl Python 3 none any Details for deqio_client-0.6.5-py3-none-any.whl

Total release size: 13.2 kB

Release files / deqio_client-0.6.5.tar.gz

Download URL deqio_client-0.6.5.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb488a08ade056431c2214f09503fbcde788df46e383ff45c8d9bcaa16299fc4
BLAKE2b-256 checksum
How to use checksums
d29f9fa55fd62348cafa7ccb923680ca620a0e47a94887700295e924b781213b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Oct 18, 2026.

Transparency log

Release files / deqio_client-0.6.5-py3-none-any.whl

Download URL deqio_client-0.6.5-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a69d6c8f8312084ac2f1520fdf93abbeef5b63c7033d34a1427b69ee804eb91
BLAKE2b-256 checksum
How to use checksums
68eee31eaaf1508c6919e9fd78e64cd2599271b943f9cafeca803c0b589abff6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Oct 18, 2026.

Transparency log

Security for deqio-client 0.6.5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for deqio_client-0.6.5.tar.gz

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 Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.5 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page