Skip to content

An unofficial API for character.ai for Python

License

Notifications You must be signed in to change notification settings

GibbotauroSpaziale/GibboCharacter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💬 CharacterAI

Tag Tag Downloads

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

About

An unofficial API for character.ai for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%