Skip to main content

precog-client

Typed synchronous and asynchronous Python clients for the Precog Execution API.

The SDK is an execution-plane client. It speaks the canonical /v1/forecast and /v1/capabilities contracts defined by Precog; it does not expose MCP semantic tools or TimesFM-specific execution knobs.

Install

After a manual Python-package release:

pip install precog-client

For development from the repository:

uv sync --all-packages

precog-client depends on the separately packaged precog-schemas wire models. The two Python packages use one synchronized package version and are built and published together, independently from the Precog application/Helm release version.

Sync client

from precog_client import PrecogClient

with PrecogClient("http://localhost:8000") as client:
    response = client.forecast(
        horizon=3,
        targets=[{"id": "sales", "values": [10, 11, 12, 13, 14]}],
        quantiles=[0.1, 0.5, 0.9],
    )
    print(response.targets[0].forecast)

Async client

from precog_client import AsyncPrecogClient

async with AsyncPrecogClient("http://localhost:8000") as client:
    response = await client.forecast(
        horizon=3,
        targets=[{"id": "sales", "values": [10, 11, 12, 13, 14]}],
        quantiles=[0.1, 0.9],
    )

Both clients share the same request/response models, retry behavior and typed error hierarchy.

See docs/sdk.md in the repository for the complete contract and examples.

Release files for precog-client 0.1.0

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

Source distribution (sdist)

Source distribution for precog-client 0.1.0
File Size Uploaded
precog_client-0.1.0.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for precog-client 0.1.0
File Interpreter ABI Platform
precog_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / precog_client-0.1.0.tar.gz

Download URL precog_client-0.1.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
77e6e3de7c954a305e798440cf4219d93806c0d8216f577ca05a04990698e293
BLAKE2b-256 checksum
How to use checksums
7d12ae5eb7b7d3d8e9b41d944bfbfd559e279c3dbc2e681813be8b1050ff4d1d
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 Sep 20, 2026.

Transparency log

Release files / precog_client-0.1.0-py3-none-any.whl

Download URL precog_client-0.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e92266cb380f18bff16d5ba904b671d9bd181cb3b98db6382fd9f1c9075ac0f4
BLAKE2b-256 checksum
How to use checksums
a2d529ad16edb9effe3c74788ab0f3961b11d96b1006f18cf7babf2e51bde3b9
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 Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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