aiSSEMBLE Inference (OIP) Client
Provides a modular Python library for standardized ML model inference, promoting interoperability across diverse runtimes and platforms. This client allows invocation of OIP endpoints in a more natural manner by ensuring that inference runtime details (like tensor-specific input/output structures) as not leaked from the model implementation into the client.
Features
Fluent Builder API
InferenceBuilder (abstract base class) offers a task-specific, chainable interface for configuring inference requests.
Supports model selection, adapter/translator registration, custom parameters, and streaming responses. Extensible via
subclasses implementing build_predictor() to produce a Predictor instance.
Task-Specific Inference
The client provides specialized builders for common ML tasks with natural, task-oriented APIs:
Object Detection
client.detect_object(model_name)- ReturnsObjectDetectionBuilder- Fluent methods:
.image(),.confidence(),.labels() - Returns
ObjectDetectionResultwith bounding boxes, labels, scores - Supports PIL images, numpy arrays, file paths, and bytes
- Example:
result = client.detect_object("yolov8") \ .image("photo.jpg") \ .confidence(0.6) \ .run() for detection in result.detections: print(f"{detection.label}: {detection.confidence}")
Text Summarization
client.summarize(model_name)- ReturnsSummarizationBuilder- Fluent methods:
.text(),.max_length(),.min_length() - Returns
SummarizationResultwith summary text and compression metrics - Example:
result = client.summarize("bart-large") \ .text("Very long article text here...") \ .max_length(100) \ .run() print(result.summary) print(f"Compressed {result.compression_ratio:.1f}x")
Raw Inference Support
RawInferenceBuilder provides a low-level, non-fluent API for direct tensor inputs and parameters, ideal for custom or
performance-critical scenarios.
Streaming Capable
Builders support iterable responses for continuous inference outputs.
Metadata
Release files for aissemble-inference-core 1.5.0
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 |
|---|---|---|---|---|
| aissemble_inference_core-1.5.0.tar.gz | 260.7 kB | Without provenance | Details for aissemble_inference_core-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aissemble_inference_core-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for aissemble_inference_core-1.5.0-py3-none-any.whl |
Total release size: 302.1 kB
Release files / aissemble_inference_core-1.5.0.tar.gz
| Download URL | aissemble_inference_core-1.5.0.tar.gz |
|---|---|
| Size | 260.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
657b9a5a776e9798276f19bd452c42fe00d7e9be32c7bba54a7d4562589396ba
|
|
BLAKE2b-256 checksum How to use checksums |
d93d9a57af9b422fef7d565d9586538dad1d3038345ac5f24a2ee9c58a193c7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / aissemble_inference_core-1.5.0-py3-none-any.whl
| Download URL | aissemble_inference_core-1.5.0-py3-none-any.whl |
|---|---|
| Size | 41.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d50257c03657d487397d61bede4c1dde8ed61e70857c5255c4130915dd90948
|
|
BLAKE2b-256 checksum How to use checksums |
2a30cbdb34591ad5c6b25d0c7905a1f8a9a2ee824829d3c1c7bb4c2277aef826
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for aissemble-inference-core 1.5.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.