This release is a pre-release and may not be stable for production use.
Hyped Serve Extension
Serve hyped data flows as REST APIs
Installation
You can install the add-on directly from PyPI using pip:
pip install hyped-extensions-serve
Getting Started
Hyped serve leverages the power of FastAPI to create a robust serving environment.
To get started, simply define your data pipeline and its expected input features in a Python script, and then serve it using hyped-extensions-serve.
Here's a basic example:
# app.py
from hyped import DataFlow
from hyped.typing import Mapping, Int
from hyped.extensions.serve import HypedAPI
# Define your input schema
class Inputs(Mapping):
x: Int
# Define your data flow
flow = DataFlow[Inputs]()
flow = flow.build(collect={"y": flow.source["x"] * 2})
# Create the app to be served
app = HypedAPI().serve_flow(flow, prefix="/")
Once you've defined your app, you can serve it using uvicorn:
uvicorn app:app --host 0.0.0.0 --port 80
This will start the server, allowing you to interact with your data pipeline via HTTP requests.
Endpoints
The Hyped Serve API provides the following endpoints for interacting with your data pipeline:
| Endpoint | Method | Description |
|---|---|---|
| /health | GET | Simple health check always returns "ok" and code 200. |
| /readiness | GET | Simple readiness check always returns "ok" and code 200. |
| <prefix>/readiness | GET | Readiness check to determine if the flow is ready to receive requests. |
| <prefix>/apply | POST | Apply the data flow to a single example. Expects a single example in JSON format. |
| <prefix>/batch | POST | Apply the data flow to a batch of data. Expects a list of examples. |
Additionally, a Swagger UI API documentation is available at /docs.
Serving multiple Data Pipes
The serving environment also supports serving multiple data pipes simultaneously. You can configure this by providing multiple data pipes and their respective features.
# app.py
app = (
HypedAPI()
.serve_flow(flowA, prefix="/A")
.serve_flow(flowB, prefix="/B")
)
This example demonstrates serving two different data pipes (pipe_one and pipe_two) with their corresponding features, each accessible via different prefixes (/one and /two).
Running Tests
Hyped Serve includes a suite of tests to ensure its functionality. You can run these tests using pytest:
pytest tests
Ensure that you have pytest installed in your environment. You can install it via pip:
pip install pytest
Running the tests will execute various test cases to validate the behavior of Hyped Serve.
License
tbd
Metadata
Release files for hyped-extensions-serve 0.1.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hyped_extensions_serve-0.1.0a0.tar.gz | 14.4 kB | With provenance | Details for hyped_extensions_serve-0.1.0a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hyped_extensions_serve-0.1.0a0-py3-none-any.whl | Python 3 | none | any | Details for hyped_extensions_serve-0.1.0a0-py3-none-any.whl |
Total release size: 21.3 kB
Release files / hyped_extensions_serve-0.1.0a0.tar.gz
| Download URL | hyped_extensions_serve-0.1.0a0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d24a0e019a383d738d970fbfa9b3e6a30e2bcf7662b8b8222eed4208de6afe57
|
|
BLAKE2b-256 checksum How to use checksums |
d386f076b74d9d3b1973c0603bdb753260467b81a760a244a611e41c1a60d094
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 24, 2026.
Transparency logRelease files / hyped_extensions_serve-0.1.0a0-py3-none-any.whl
| Download URL | hyped_extensions_serve-0.1.0a0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90b6f4a95065f5fcbd2d26f65dae4ceb58842bde624adc0cd113dd509cc47ef2
|
|
BLAKE2b-256 checksum How to use checksums |
440237f189eaf9896de0ef23eef8a3562fb4971d30b742d771738ea8b85d5a36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 24, 2026.
Transparency logSecurity for hyped-extensions-serve 0.1.0a0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hyped_extensions_serve-0.1.0a0.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 Jul 24, 2026.
Transparency logA 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.