API BASED IMAGE GENERATOR PYPI.
Project description
TensorART is a hybrid API for tensor.art. It is able to communicate with Tensor
using web-scraping.. It is
able to access most used or useful ai features, such as text2img, img2img , upscale, and a lot more.
[!WARNING] This project is probably against TensorART TOS. Use at your own risks.
Installation
- Install using
pip
(python3.11
or higher required, recommended version):
pip install --upgrade TensorART
- Or from this repo to get the latest fixes/features:
pip install --upgrade git+https://github.com/XZeipher/TensorAI.git
- Or, for python 3.10 and higher.
pip install --upgrade git+https://github.com/XZeipher/TensorAI.git@py-3.10
- Or, for even lower python versions, there is automatic branch with several features removed (might be unstable).
pip install --upgrade git+https://github.com/XZeipher/TensorAI.git@compat
Quickstart
[!NOTE] You can find the docs on this project here.
from TensorART import TensorClient
import aiohttp,aiofiles
# Initialise a client
client = TensorClient()
# Create ai image
image_url = await client.create(model_id=1,prompt="blonde girl sitting in garden")
# save image binary data
async with aiohttp.ClientSession as session:
async with session.get(image_url) as response:
async with aiofiles.open('image.png','wb') as f:
await f.write(await response.content)
# image will be saved as image.png
Note
This repository is initiated and maintained by XZeipher
License
TensorART uses GPLv3. See the LICENSE
file.
Contributing
Feel free to contribute to this project by submitting feature requests, issues, bugs, or whatever.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file TensorART-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: TensorART-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2e8a369f4c99596a12682e2a7550ccd39d6edc3667b3ff0c72137ace1520da |
|
MD5 | dbcaa28d45883a3ddc96b10f1e79cb0a |
|
BLAKE2b-256 | 139abe07e99f5b8fae5a609836efe05282d6eb3e4ee129e4edc85acc283b66d7 |