async-tensorart


Nameasync-tensorart JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryAsyncio wrapper for TensorArt API
upload_time2024-08-19 11:38:29
maintainerNone
docs_urlNone
authorandrew000
requires_python>=3.10
licenseMIT
keywords api framework wrapper asyncio tensorart
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AsyncTensorArt

#### Asynchronous wrapper for the TensorArt API

---

`async_tensorart` is a Python package for asynchronous access to
the [TensorArt](https://tensor.art/) API.

## Installation

```bash
pip install async-tensorart
```

---

## Usage

```python
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.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "async-tensorart",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "api, framework, wrapper, asyncio, tensorart",
    "author": "andrew000",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/24/de/698c4bcc43c163c4694e0bcfd5c06dc5cd3f6557811e5aaf80eb46187128/async_tensorart-0.2.1.tar.gz",
    "platform": null,
    "description": "# AsyncTensorArt\n\n#### Asynchronous wrapper for the TensorArt API\n\n---\n\n`async_tensorart` is a Python package for asynchronous access to\nthe [TensorArt](https://tensor.art/) API.\n\n## Installation\n\n```bash\npip install async-tensorart\n```\n\n---\n\n## Usage\n\n```python\nimport asyncio\nfrom pathlib import Path\n\nfrom aiohttp import ClientSession\n\nfrom async_tensorart import TensorArt\nfrom async_tensorart.signature import PrivateKey\n\n\nasync def main():\n    # Create a TensorArt client\n    tensor = TensorArt(\n        app_id=\"APP_ID\",\n        endpoint=\"ENDPOINT\",\n        session=ClientSession(),\n        private_key=PrivateKey(path=Path(\"private_key.pem\")),\n    )\n\n    # Get model info\n    model_info = await tensor.get_model(model_id=42)\n    print(model_info)\n\n\nasyncio.run(main())\n```\n\n---\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asyncio wrapper for TensorArt API",
    "version": "0.2.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/andrew000/AsyncTensorArt/issues",
        "homepage": "https://github.com/andrew000/AsyncTensorArt",
        "repository": "https://github.com/andrew000/AsyncTensorArt"
    },
    "split_keywords": [
        "api",
        " framework",
        " wrapper",
        " asyncio",
        " tensorart"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a790e50fce434a499810f11a910b2cc234f964f3a0d2266d26f8bb8ef5b710f0",
                "md5": "c953856aab057b6b9c42f647a956c31a",
                "sha256": "7450525edbec5df41fc1835b1b32722c5b7aa6087298fc17d8b7dbc1e255f154"
            },
            "downloads": -1,
            "filename": "async_tensorart-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c953856aab057b6b9c42f647a956c31a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 18601,
            "upload_time": "2024-08-19T11:38:28",
            "upload_time_iso_8601": "2024-08-19T11:38:28.142106Z",
            "url": "https://files.pythonhosted.org/packages/a7/90/e50fce434a499810f11a910b2cc234f964f3a0d2266d26f8bb8ef5b710f0/async_tensorart-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24de698c4bcc43c163c4694e0bcfd5c06dc5cd3f6557811e5aaf80eb46187128",
                "md5": "6d0180c719f0011653bbec8f02102bb6",
                "sha256": "8d5ae5fbcddebec299244134aa205ece1dc63a3eca1c265f6a50dc6ee4ad6c59"
            },
            "downloads": -1,
            "filename": "async_tensorart-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6d0180c719f0011653bbec8f02102bb6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 11148,
            "upload_time": "2024-08-19T11:38:29",
            "upload_time_iso_8601": "2024-08-19T11:38:29.344731Z",
            "url": "https://files.pythonhosted.org/packages/24/de/698c4bcc43c163c4694e0bcfd5c06dc5cd3f6557811e5aaf80eb46187128/async_tensorart-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-19 11:38:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "andrew000",
    "github_project": "AsyncTensorArt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "async-tensorart"
}
        
Elapsed time: 0.40897s