Skip to main content

For Windows users, you need to find a way to install redis-server, you could run everything under WSL or add a Docker!

CASafari 🚀

A robust, modern web dashboard and interactive chat bot ecosystem combining Flask and TwitchIO.

This application lets you manage interactive automation, track twitch chat components, host local assets, and process data using asynchronous pipelines backed by Redis and SQLite.


🛡️ License & Copyleft Protection

This project is proudly licensed under the GNU Affero General Public License v3.0 (AGPLv3).

What this means for users and developers:

  • Open & Collaborative: You are free to fork, clone, modify, and contribute back to this repository.
  • No Closed-Source Exploitation: If you modify this project and host it on a network or cloud server (such as AWS, Heroku, or a private server) as a web application, API, or service, you are legally required to make your entire modified source code available to your users under the exact same AGPLv3 license. You cannot lock this code behind a closed-source proprietary paid service.

📦 Installation

Option 1: Standard Installation (Via PyPI)

For users who just want to download and run the package without modifying the core files, install it globally using pip:

pip install CASafari

pip will automatically download and install all required external dependencies (Flask, twitchio, redis, asqlite, and aiohttp) in the background.

Option 2: Developer Installation (Via Git)

If you want to view, customize, or contribute to the project layout:

  1. Clone the repository:
    git clone https://github.com
    cd CASafari
    
  2. Install the package locally in editable mode so changes take effect immediately:
    pip install -e .
    

⚙️ Configuration Setup

Before running the application, you must fill out your local configuration blueprints sitting in the root folder.

1. credentials.json

Open this file and replace the placeholders with your authentic Twitch and database access tokens:

{
  "TWITCH_CLIENT_ID": "your_client_id_here",
  "TWITCH_OAUTH_TOKEN": "your_oauth_token_here",
  "REDIS_HOST": "localhost",
  "REDIS_PORT": 6379
}

2. targetlist.json

Populate this file with your targeting metrics, channels, or initial list filters used by the tracking scripts.


🛠️ Project Architecture

This repository uses a structured, standardized Python layout:

CASafari/
├── .github/workflows/release.yml   # Secure automated publishing to PyPI
├── pyproject.toml                  # Single-source-of-truth metadata & dependencies
├── LICENSE                         # GNU AGPLv3 License text
├── README.md                       # Documentation and usage guide
├── credentials.json                # User credentials template (Do not push secrets!)
├── targetlist.json                 # Core system configuration data
└── src/
    └── CASafari/
        ├── __init__.py             # Python package initializer
        ├── casafari.py             # Main runtime hub
        ├── nina.py                 # Bot automation sub-routines
        ├── tts.py                  # Experimental Audio/TTS handlers (Unused in core)
        ├── twitch.py               # TwitchIO listener and chat connection pipeline
        └── webserver.py            # Flask UI router and data endpoints

🤝 Contributing

We welcome community collaborations to make CASafari better! To contribute:

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

All contributions will remain protected under the project's original AGPLv3 license.

Metadata

Release files for CASafari 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CASafari 0.1.5
File Size Uploaded
casafari-0.1.5.tar.gz 36.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CASafari 0.1.5
File Interpreter ABI Platform
casafari-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 73.2 kB

Release files / casafari-0.1.5.tar.gz

Download URL casafari-0.1.5.tar.gz
Size 36.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8aa1858998d4dd846a667c3ed6f43ad7c6fd25772dfd63897db36d44a8852a42
BLAKE2b-256 checksum
How to use checksums
8dde0918c551477748fba00b9be05282da1dcbbfb8a6300beb324bd59d109f30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / casafari-0.1.5-py3-none-any.whl

Download URL casafari-0.1.5-py3-none-any.whl
Size 36.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff95ce018919d57d740a44fd6a88f60fe70ddf97e0c81705529746b2b954f0ef
BLAKE2b-256 checksum
How to use checksums
f1492f73535aef25266d846190596209c31c2adb98cd3a04c29506913d14d3cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.9

2 release files

0.1.7

2 release files

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page