Shared HTTP-facing type definitions for OuterProduct services and SDKs.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
outerproduct-http-types
Shared HTTP-facing type definitions for the OuterProduct API.
This package contains the Pydantic models that describe the request and response shapes used across OuterProduct services and SDKs. It is the source of truth for the wire contract between the OuterProduct backend and any client (including the official Python SDK).
Most users should not depend on this package directly. Instead, install the OuterProduct SDK, which re-exports the relevant types and provides a typed client. Use this package only when you are building tooling that needs to construct or parse OuterProduct API payloads independently of the SDK.
Installation
pip install outerproduct-http-types
Requires Python 3.12 or newer.
Usage
Import the model that matches the endpoint you are working with and construct or validate payloads as you would with any Pydantic model:
from outerproduct_http_types import PredictRequest, PredictResponse
request = PredictRequest(
samples=[[1.0, "x"], [2.5, "y"]],
feature_names=["feature_a", "feature_b"],
)
payload = request.model_dump_json()
# ... POST `payload` to /v1/models/{model_id}/predict, then parse:
response = PredictResponse.model_validate_json(raw_response_body)
print(response.model_id, response.predictions)
The package ships with a py.typed marker, so type checkers (mypy, pyright,
ty) will pick up the type information automatically.
Versioning
This package follows semantic versioning. Breaking changes to wire types are released as a new major version. Minor versions add new endpoints or optional fields; patch versions are reserved for documentation and non-behavioral fixes.
License
Licensed under the MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outerproduct_http_types-0.1.0.tar.gz.
File metadata
- Download URL: outerproduct_http_types-0.1.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92cd3e287a4b2a41dee9dcee04d3fe5777ce3af78d4670a4f431f87517e98b0a
|
|
| MD5 |
4ebd091d5d7e19c23d7501f28eebabac
|
|
| BLAKE2b-256 |
3714c4156b4d24cebd36ecafb7fa2e2e7ac50d7aa9147bbdbcd855977e1cbd66
|
Provenance
The following attestation bundles were made for outerproduct_http_types-0.1.0.tar.gz:
Publisher:
publish.yml on OuterProduct-ai/outerproduct-http-types
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
outerproduct_http_types-0.1.0.tar.gz -
Subject digest:
92cd3e287a4b2a41dee9dcee04d3fe5777ce3af78d4670a4f431f87517e98b0a - Sigstore transparency entry: 1480159839
- Sigstore integration time:
-
Permalink:
OuterProduct-ai/outerproduct-http-types@665a1511272ed0a481545b0e663e121af6ef2114 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OuterProduct-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@665a1511272ed0a481545b0e663e121af6ef2114 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file outerproduct_http_types-0.1.0-py3-none-any.whl.
File metadata
- Download URL: outerproduct_http_types-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f16697d67f743a2bcd803ab2bfe0e7510cdce6b18062f27ae7298cd463a30cc5
|
|
| MD5 |
a32a706409ac158dc39185d4bfcaa23c
|
|
| BLAKE2b-256 |
46970d277adc584f5f04b0e9d761b97bbaf5ab4907cd162a40ff6da96efc9ab1
|
Provenance
The following attestation bundles were made for outerproduct_http_types-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on OuterProduct-ai/outerproduct-http-types
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
outerproduct_http_types-0.1.0-py3-none-any.whl -
Subject digest:
f16697d67f743a2bcd803ab2bfe0e7510cdce6b18062f27ae7298cd463a30cc5 - Sigstore transparency entry: 1480159979
- Sigstore integration time:
-
Permalink:
OuterProduct-ai/outerproduct-http-types@665a1511272ed0a481545b0e663e121af6ef2114 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OuterProduct-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@665a1511272ed0a481545b0e663e121af6ef2114 -
Trigger Event:
workflow_dispatch
-
Statement type: