Skip to main content

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.

Metadata

Release files for async-tensorart 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-tensorart 0.2.1
File Size Uploaded
async_tensorart-0.2.1.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for async-tensorart 0.2.1
File Interpreter ABI Platform
async_tensorart-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.7 kB

Release files / async_tensorart-0.2.1.tar.gz

Download URL async_tensorart-0.2.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8d5ae5fbcddebec299244134aa205ece1dc63a3eca1c265f6a50dc6ee4ad6c59
BLAKE2b-256 checksum
How to use checksums
24de698c4bcc43c163c4694e0bcfd5c06dc5cd3f6557811e5aaf80eb46187128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / async_tensorart-0.2.1-py3-none-any.whl

Download URL async_tensorart-0.2.1-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7450525edbec5df41fc1835b1b32722c5b7aa6087298fc17d8b7dbc1e255f154
BLAKE2b-256 checksum
How to use checksums
a790e50fce434a499810f11a910b2cc234f964f3a0d2266d26f8bb8ef5b710f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page