Skip to main content

InferIO-X

Inference I/O Extended

Python Code style: black Ruff pre-commit Conventional Commits

Installation

$ pip install inferio-x==0.1.0

Usage

from pydantic import BaseModel
from inferio import Service, Endpoint, Method


class PredictPayload(BaseModel):
    name: str
    age: int


class Predictor:
    def __init__(self, model_f: str) -> None:
        self.model_f = model_f

    def predict(self, payload: PredictPayload) -> dict: ...


if __name__ == "__main__":
    predictor = Predictor(model_f="model.pth")
    service = Service(
    endpoints=[
        Endpoint(path="/", handler=predictor.predict, methods=[Method.POST]),
    ])
    service.run()

Tests

To run the tests, use the following command:

$ poetry run pytest

Metadata

Release files for inferio-x 0.1.1

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

Source distribution (sdist)

Source distribution for inferio-x 0.1.1
File Size Uploaded
inferio_x-0.1.1.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inferio-x 0.1.1
File Interpreter ABI Platform
inferio_x-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / inferio_x-0.1.1.tar.gz

Download URL inferio_x-0.1.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a2329b8055125d6c221adfc51ed13b2c176a1331a6d89480ac3a764b3a1ffa8a
BLAKE2b-256 checksum
How to use checksums
3f5b89f5c233ba087aba30747a963564952f6bd4e2e1a5f9df24df0e47e45674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.9 Darwin/23.4.0

Release files / inferio_x-0.1.1-py3-none-any.whl

Download URL inferio_x-0.1.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36b05650a4c3f16e07e77bcb0ca38a0c11150bfe57e076e473d5103baad519bd
BLAKE2b-256 checksum
How to use checksums
64c7b0d3f1fe52fee71c12434c18eeb4e31f272d06cfa5bddf5fcf1d8853d223
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.9 Darwin/23.4.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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