An unofficial API for character.ai for Python
Project description
💬 CharacterAI
An unofficial API for Character AI for Python using Playwright
If you have any questions or just want to chat about character.ai, go to Telegram chat
💻 Installation
pip install characterai
📙 Example
Simple code for chatting with character
from characterai import PyCAI
client = PyCAI('TOKEN')
while True:
message = input('You: ')
data = client.chat.send_message('CHAR', message)
message = data['replies'][0]['text']
name = data['src_char']['participant']['name']
print(f"{name}: {message}")
📚 Documentation
The library has documentation! It says everything about this library
⭐️ Features
- The only library for character.ai
- Asynchronous
- So easy to use
⚠️ Disclaimer
This library is written by a beginner in python, if you have any problems, write to me in Telegram
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
characterai-0.6.0.tar.gz
(7.0 kB
view details)
File details
Details for the file characterai-0.6.0.tar.gz
.
File metadata
- Download URL: characterai-0.6.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.9.6 requests/2.28.2 setuptools/58.1.0 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.9.0rc2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c5592b71079d536a02bbc2d4bbe48a147f6075cd280273d7d3d6cb9f8cdcc4 |
|
MD5 | 4d88ac5c9c0ebe07f87d646987a5fd9e |
|
BLAKE2b-256 | f5ff93ba83c86b9b842f1e6f3cc4bc8aefe090f441b9d9fc6a62a9a420175a5e |