Skip to main content

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


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 details)

Uploaded Source

Built Distribution

aiomodelz-0.4.10-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file aiomodelz-0.4.10.tar.gz.

File metadata

  • Download URL: aiomodelz-0.4.10.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.5.3 CPython/3.11.3

File hashes

Hashes for aiomodelz-0.4.10.tar.gz
Algorithm Hash digest
SHA256 63c41bcd5532a7f233e7e943db5a1e676de3f172d8500279aac4a75f199fe7e0
MD5 6161cdc0d6b6b0f3b6832e227d95059b
BLAKE2b-256 8644b549a3cde66a34a389b572217501022e4ee5782319c9c9fd0f20895f50ac

See more details on using hashes here.

File details

Details for the file aiomodelz-0.4.10-py3-none-any.whl.

File metadata

  • Download URL: aiomodelz-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.5.3 CPython/3.11.3

File hashes

Hashes for aiomodelz-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e38067a4b1098f3edf4064d4a3352aa54b5f3da5627baed775680d254a8aa905
MD5 c52619586001b10da20e68ec496b7a2d
BLAKE2b-256 e82069530f7e81548411ca2beeb2d3239a6c0ddc0d77d7364f89a5a24d609453

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page