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! For Windows AND Linux you need to install redislite, currently its excluded from the package to not break the installation

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.7

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.7
File Size Uploaded
casafari-0.1.7.tar.gz 36.5 kB Details

Built distribution (wheel)

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

Total release size: 73.4 kB

Release files / casafari-0.1.7.tar.gz

Download URL casafari-0.1.7.tar.gz
Size 36.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d3e15f3e875572aa5f3ef50152241ea55cc802f073e13cc6c69f947bf9a57259
BLAKE2b-256 checksum
How to use checksums
731c87f74374e2f179db29636f3540df2c3c22a4dc0c8f4e1745cbeaf66c19f3
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 9, 2026.

Transparency log

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

Download URL casafari-0.1.7-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19a6933b456a25899e1bf49797545a8609a01902dbb3168a2f1057ebf96cb12f
BLAKE2b-256 checksum
How to use checksums
904424ba47d2d58a105d5cbe5a6ef9ff89a2b8130fd34e15e2e4c297813550a1
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 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.9

2 release files

This release

0.1.7 This release

2 release files

0.1.5

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