Skip to main content

pixano-inference-client

The lightweight client for a Pixano Inference server. Install this when your app only needs to call a running server over HTTP — it pulls in just httpx, pydantic, and numpy, not the server stack (ray[serve], fastapi, uvicorn, torch, …).

pip install pixano-inference-client

It ships the same client classes and wire schemas as the full pixano-inference package, so code written against either works unchanged.

Use

from pixano_inference_client import SyncPixanoInferenceClient, DetectionRequest, EmbeddingRequest

client = SyncPixanoInferenceClient("http://localhost:7463", api_key="…")

det = client.detection(DetectionRequest(model="my-detector", image="https://example.com/cat.jpg"))
print(det.data.boxes, det.data.scores, det.data.classes)

emb = client.embedding(EmbeddingRequest(model="clip", text="a photo of a cat"))
print(emb.data.dim, emb.data.embeddings.to_numpy().shape)

An asynchronous twin, PixanoInferenceClient, exposes the same methods with await. Both accept an optional API key, retry transient failures with backoff, and raise PixanoInferenceError carrying the server's {code, message, requestId} envelope.

What's included

  • Clients: PixanoInferenceClient (async), SyncPixanoInferenceClient (sync), PixanoInferenceError.
  • Request/response types for every /v1 capability: SegmentationRequest/Response, DetectionRequest/Response, VLMRequest/Response, NERRequest/Response, EmbeddingRequest/Response, TrackingRequestV1/TrackingResponse.
  • Wire types: NDArray/NDArrayFloat (compact base64 arrays), CompressedRLE (masks), ModelInfo, ModelStatusInfo, JobStatus, DeployModelRequest, and the capability I/O models.

Optional: mask codecs

Decoding a segmentation response into a numpy mask (CompressedRLE.to_mask()), or building one from a mask (CompressedRLE.from_mask()), needs pycocotools (and Pillow for image inputs). These are optional — parsing a normal compressed-bytes response works without them:

pip install pixano-inference-client[masks]

Relationship to pixano-inference

The full server package pixano-inference depends on this package and re-exports it, so from pixano_inference.client import PixanoInferenceClient and from pixano_inference_client import PixanoInferenceClient refer to the same classes. Server operators install pixano-inference; third-party callers install just pixano-inference-client.

Metadata

Release files for pixano-inference-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 pixano-inference-client 0.1.0
File Size Uploaded
pixano_inference_client-0.1.0.tar.gz 24.1 kB Details

Built distribution (wheel)

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

Total release size: 59.5 kB

Release files / pixano_inference_client-0.1.0.tar.gz

Download URL pixano_inference_client-0.1.0.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cec5cdc2a88283508db3d41ae5ba161b1560177ba3d4ea4d1fa47011f8ac88a8
BLAKE2b-256 checksum
How to use checksums
3da0e24ff8f96436165d962e876ad473c5db95634287a430c068c7c89526fa08
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 23, 2026.

Transparency log

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

Download URL pixano_inference_client-0.1.0-py3-none-any.whl
Size 35.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b7f4ac45e130a3e098b21dc16a55c8175117a985cf4f8b4cb381d26aae90f72
BLAKE2b-256 checksum
How to use checksums
1ab6bc6ddf47208ecf90f577a818c096e849def4b01369bf83982f5f6ea334b9
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 23, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

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