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.1.0.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file async_tensorart-0.1.0.tar.gz
.
File metadata
- Download URL: async_tensorart-0.1.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 | 73a93b55c77514412f447e82f2eb770142ef515f7b12ef47b46d92ae474e8d96 |
|
MD5 | 72c3c2fd84463890eba5627871eebf07 |
|
BLAKE2b-256 | ebe0ecc16476dafa160b5cb07b34515ffc000a15bcf2646e85ee183977fff841 |
File details
Details for the file async_tensorart-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: async_tensorart-0.1.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 | 143aa88304e7f3a17eab7720b02ef740344df1580ce932ccb0203a80c9e59d3e |
|
MD5 | 5a6bc69ee7e19a7949f726f24eecd968 |
|
BLAKE2b-256 | 962a9ec9afa54bf65a039c46e0a3deb8036f4c657b18bb8fdd3b8184305d16dc |