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 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
from dotenv import load_dotenv
load_dotenv()
from modelz import AioModelzClient, ModelzClient
...
Develop
$ git clone https://github.com/tddschn/aiomodelz.git
$ cd aiomodelz
$ pdm install