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 hashes)
Built Distribution
Close
Hashes for async_tensorart-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69fffadaf543e763e85acea21385d1135ae8104cf3dd8d9b8e9130d09c974d21 |
|
MD5 | 791f7c4d7542ca1048a75ef37f203266 |
|
BLAKE2b-256 | 136af033409dac4af9f4a986112e1280e0b3c6e1eb12a2ac8fe3d9c521663d02 |