TensorChord Modelz Python SDK and CLI
modelz-py with aiohttp
Basically, aioclient.py implements the async / aiohttp versions of Modelz* classes,
and client.py wraps around them with asyncio.run() calls.
Installation
pipx
This is the recommended installation method if you only want to use the CLI.
$ pipx install aiomodelz
pip
$ pip install aiomodelz
CLI Usage
$modelz --help
usage: modelz [-h] {inference,metrics,build} ...
modelz CLI
positional arguments:
{inference,metrics,build}
options:
-h, --help show this help message and exit
Example Usage
CLI Inference
echo "cute cat" | modelz inference $PROJECT --serde msgpack --write-file cat.jpg --read-stdin
Python Interface
# use dotenv to load env
from dotenv import load_dotenv
load_dotenv()
# example .env:
# MODELZ_API_KEY=mzi-*****
# MODELZ_HOST=https://{}.cloud.modelz.dev/ # use this if you're using the dev modelz cluster
# MODELZ_SSL_VERIFY=0 # disable ssl verification
from modelz import AioModelzClient, ModelzClient
...
Develop
$ git clone https://github.com/tddschn/aiomodelz.git
$ cd aiomodelz
$ pdm install
Metadata
Release files for aiomodelz 0.4.10
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 |
|---|---|---|---|---|
| aiomodelz-0.4.10.tar.gz | 11.9 kB | Without provenance | Details for aiomodelz-0.4.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiomodelz-0.4.10-py3-none-any.whl | Python 3 | none | any | Details for aiomodelz-0.4.10-py3-none-any.whl |
Total release size: 28.3 kB
Release files / aiomodelz-0.4.10.tar.gz
| Download URL | aiomodelz-0.4.10.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63c41bcd5532a7f233e7e943db5a1e676de3f172d8500279aac4a75f199fe7e0
|
|
BLAKE2b-256 checksum How to use checksums |
8644b549a3cde66a34a389b572217501022e4ee5782319c9c9fd0f20895f50ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.5.3 CPython/3.11.3
|
Release files / aiomodelz-0.4.10-py3-none-any.whl
| Download URL | aiomodelz-0.4.10-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e38067a4b1098f3edf4064d4a3352aa54b5f3da5627baed775680d254a8aa905
|
|
BLAKE2b-256 checksum How to use checksums |
e82069530f7e81548411ca2beeb2d3239a6c0ddc0d77d7364f89a5a24d609453
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.5.3 CPython/3.11.3
|
Security for aiomodelz 0.4.10
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.