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

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.9
File Size Uploaded
casafari-0.1.9.tar.gz 36.6 kB Details

Built distribution (wheel)

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

Total release size: 73.7 kB

Release files / casafari-0.1.9.tar.gz

Download URL casafari-0.1.9.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6342440f72ad28f3a66de548ea1fad9082999afd5d2dc2a231734fd3fd3a385e
BLAKE2b-256 checksum
How to use checksums
04f84a5575741e762466db936b850150604b98beefa614c04fef023e81086474
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.9-py3-none-any.whl

Download URL casafari-0.1.9-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a19891bf98ef992e7d00492c857ba970f31003e385dba3d8ec71f865c16b8a32
BLAKE2b-256 checksum
How to use checksums
05f1d5378c9745540bccb335263e73210cf925c5a9c921a0a7c28241b9948c03
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

This release

0.1.9 This release

2 release files

0.1.7

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