A python wrapper for anova.chat
Project description
AnovaChat
A python wrapper for anova project api
Installation
pip install anovachat-py
Examples
from time import sleep
from anovachat import AnovaChat
client = AnovaChat("you key")
prompt = "Hi"
limit = client.limits()["data"]
print(limit["tokens_left"])
tokens_count = client.tokenize(prompt)["data"]
print(tokens_count["tokens"])
data = client.send(prompt)["data"]
uuid = data["uuid"]
while True:
status = client.status(uuid)["data"]
if status["status"] == "SUCCESS":
print(status["answer"])
break
sleep(30)
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
anovachat_py-1.0.0.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anovachat_py-1.0.0.tar.gz.
File metadata
- Download URL: anovachat_py-1.0.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e333a2931eb08cbfaca468ad9fdf66cad603a19d2ef3852fa193fc83721e2f4
|
|
| MD5 |
21d92775c3283096d55b3ae0d01a0e47
|
|
| BLAKE2b-256 |
9f5b04cfaaf3b1f49d8b2be8a6cefdfe04d3a28031cef5f282e368bbfa28c961
|
File details
Details for the file anovachat_py-1.0.0-py3-none-any.whl.
File metadata
- Download URL: anovachat_py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75a790d462f2f40031b47d9afde48ea83acd216989ffa175186adf47718d7f9c
|
|
| MD5 |
5cb2601f4128f1ebe4806b85b705c753
|
|
| BLAKE2b-256 |
06f4cb8553f5c4b124776e661443a6f7597bdd6079a5d3ab19c25be114383558
|