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.9.tar.gz
(12.3 kB
view hashes)
Built Distribution
aiomodelz-0.4.9-py3-none-any.whl
(17.2 kB
view hashes)
Close
Hashes for aiomodelz-0.4.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 293508f63e6135c98102e94a552e96cba3e327f569bbe4614e98ce9b0d1434e6 |
|
MD5 | 0ed81d93df95e123a9620571dbc0f5e5 |
|
BLAKE2b-256 | 8f89bca63631a10757cd43f487c19992120953276000081e148c59dd81675432 |