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
Built Distribution
File details
Details for the file async_tensorart-0.0.0rc0.tar.gz
.
File metadata
- Download URL: async_tensorart-0.0.0rc0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a631b24abed25acb628aa40b6a5c28e1725234731375d7451499c8a8adcc1c3f |
|
MD5 | 251576509c62d87133c6db6b47167a8e |
|
BLAKE2b-256 | d37e17359ad16fadb0b78cca478a8611564d19670285754e92ad8d5d2e4dca60 |
File details
Details for the file async_tensorart-0.0.0rc0-py3-none-any.whl
.
File metadata
- Download URL: async_tensorart-0.0.0rc0-py3-none-any.whl
- Upload date:
- Size: 14.2 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 | c8ae16519efa8ccadf0e98eac4677db708e305896ab9aa9a765cb12270fe3972 |
|
MD5 | 086ff9edb030c8244a2d4c7fae56beb1 |
|
BLAKE2b-256 | f100a6d1632379aa0a44c6b79380a99af385076f2b3579c483e87f2115bfaed2 |