machine learning models
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiomodelz-0.4.10.tar.gz
(11.9 kB
view hashes)
Built Distribution
aiomodelz-0.4.10-py3-none-any.whl
(16.4 kB
view hashes)
Close
Hashes for aiomodelz-0.4.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38067a4b1098f3edf4064d4a3352aa54b5f3da5627baed775680d254a8aa905 |
|
MD5 | c52619586001b10da20e68ec496b7a2d |
|
BLAKE2b-256 | e82069530f7e81548411ca2beeb2d3239a6c0ddc0d77d7364f89a5a24d609453 |