Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inferio_x-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

inferio_x-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file inferio_x-0.1.1.tar.gz.

File metadata

  • Download URL: inferio_x-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for inferio_x-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a2329b8055125d6c221adfc51ed13b2c176a1331a6d89480ac3a764b3a1ffa8a
MD5 56b6ca5c9e2070cfc76ae5e81e7aa8a9
BLAKE2b-256 3f5b89f5c233ba087aba30747a963564952f6bd4e2e1a5f9df24df0e47e45674

See more details on using hashes here.

File details

Details for the file inferio_x-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: inferio_x-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for inferio_x-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36b05650a4c3f16e07e77bcb0ca38a0c11150bfe57e076e473d5103baad519bd
MD5 2a11b1357bc6f8e7a6f072bb79dc12a2
BLAKE2b-256 64c7b0d3f1fe52fee71c12434c18eeb4e31f272d06cfa5bddf5fcf1d8853d223

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page