Skip to main content

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


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.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

async_tensorart-0.2.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file async_tensorart-0.2.1.tar.gz.

File metadata

  • Download URL: async_tensorart-0.2.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for async_tensorart-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8d5ae5fbcddebec299244134aa205ece1dc63a3eca1c265f6a50dc6ee4ad6c59
MD5 6d0180c719f0011653bbec8f02102bb6
BLAKE2b-256 24de698c4bcc43c163c4694e0bcfd5c06dc5cd3f6557811e5aaf80eb46187128

See more details on using hashes here.

File details

Details for the file async_tensorart-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for async_tensorart-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7450525edbec5df41fc1835b1b32722c5b7aa6087298fc17d8b7dbc1e255f154
MD5 c953856aab057b6b9c42f647a956c31a
BLAKE2b-256 a790e50fce434a499810f11a910b2cc234f964f3a0d2266d26f8bb8ef5b710f0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page