Asyncio wrapper for TensorArt API
Project description
AsyncTensorArt
Asynchronous wrapper for the TensorArt API
async_tensorart
is a Python package for asynchronous access to
the TensorArt API.
Installation
pip install async-tensorart
Usage
import asyncio
from pathlib import Path
from aiohttp import ClientSession
from async_tensorart import TensorArt
from async_tensorart.signature import PrivateKey
async def main():
# Create a TensorArt client
tensor = TensorArt(
app_id="APP_ID",
endpoint="ENDPOINT",
session=ClientSession(),
private_key=PrivateKey(path=Path("private_key.pem")),
)
# Get model info
model_info = await tensor.get_model(model_id=42)
print(model_info)
asyncio.run(main())
License
This project is licensed under the terms of the MIT license.
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
async_tensorart-0.2.0.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file async_tensorart-0.2.0.tar.gz
.
File metadata
- Download URL: async_tensorart-0.2.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e1f00b6932b8e478919677dcf58a6bf9e195deee92d75e184cd27bf7ab99e0 |
|
MD5 | 3a23c0e3e162ff90a4153e95548610f9 |
|
BLAKE2b-256 | 57f45cfa86832f93325e76527af35dc22ceab9faea4462627a5c7f10b6b1f28d |
File details
Details for the file async_tensorart-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: async_tensorart-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69fffadaf543e763e85acea21385d1135ae8104cf3dd8d9b8e9130d09c974d21 |
|
MD5 | 791f7c4d7542ca1048a75ef37f203266 |
|
BLAKE2b-256 | 136af033409dac4af9f4a986112e1280e0b3c6e1eb12a2ac8fe3d9c521663d02 |