CASafari 🚀
A robust, modern web dashboard and interactive telescope automation ecosystem combining Flask, TwitchIO, and N.I.N.A. (Nighttime Imaging 'N' Astronomy).
CASafari features a custom, lightweight, native Python caserver and caclient backend pipeline imported seamlessly as redis to mimic standard Redis libraries—making the entire application 100% cross-platform without requiring external redis-server installations.
🛡️ 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 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.
📦 Installation & Setup
Developer Installation (Via Git)
Clone the repository and install it locally in editable mode:
git clone https://github.com/your-username/CASafari
cd CASafari
pip install -e .
⚙️ Configuration Files
Before running the application, ensure your configuration files are properly populated in the root folder:
1. credentials.json
Used by the Twitch bot and web dashboard for API access:
{
"client_id": "your_twitch_client_id",
"client_secret": "your_twitch_client_secret",
"owner_id": "your_owner_id",
"bot_id": "your_bot_id",
"token": "your_oauth_token"
}
2. casafari-config.json
Defines your geographic coordinates, mount tracking boundaries, and N.I.N.A. integration endpoint:
{
"lat": 59.6,
"lon": 16.4903,
"AltLim": 30,
"AltLimMax": 75,
"AzLim": 230,
"AzLimMax": 350,
"expo": 30,
"ip": "localhost:1888"
}
3. targetlist.json
Contains your celestial targets list, coordinates, and chat trigger commands (e.g., !slew_andromeda).
🛠️ Project Architecture
CASafari/
├── pyproject.toml # Package metadata & dependencies
├── LICENSE # GNU AGPLv3 License text
├── README.md # Documentation and usage guide
├── credentials.json # Twitch authentication credentials
├── casafari-config.json # Observer location and mount limits
├── targetlist.json # Celestial target database
├── caclient.py # Synchronous custom Redis client
├── caclientasync.py # Asynchronous custom Redis client
├── caserver.py # Native cross-platform Redis-compatible server
├── casafari.py # Main runtime hub & auto-safari loop
├── nina.py # N.I.N.A. API bridge and equipment monitor
├── twitch.py # TwitchIO chat bot and command router
├── tts.py # Experimental Pocket-TTS audio worker
└── webserver.py # Flask master control dashboard UI
🚀 Execution & Startup Order
⚠️ Important: The startup order is critical for proper inter-process communication.
- Step 1 (Mandatory First): Start
caserver.pypython caserver.py - Step 2 (Recommended Second): Start
webserver.pypython webserver.py - Steps 3–5 (Remaining Order is Flexible):
- Start the N.I.N.A. Automation Bridge:
python nina.py - Start the Core Automation Hub (Casafari):
python casafari.py - Start the Twitch Chat Bot:
python twitch.py
- Start the N.I.N.A. Automation Bridge:
🤝 Contributing
We welcome community collaborations! Feel free to open a Pull Request or fork the project. All contributions remain protected under the AGPLv3 license.
Metadata
Release files for CASafari 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| casafari-0.1.10.tar.gz | 38.5 kB | With provenance | Details for casafari-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| casafari-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for casafari-0.1.10-py3-none-any.whl |
Total release size: 79.2 kB
Release files / casafari-0.1.10.tar.gz
| Download URL | casafari-0.1.10.tar.gz |
|---|---|
| Size | 38.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11ffb79fa558e31ea32d92a46abae2f55d48394eafb1311f7c1e4024bffd3571
|
|
BLAKE2b-256 checksum How to use checksums |
31fff80829db5dfddf2bc8d7c874dfcacc51ea9717749d6346c4c8b3a4bd29ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 23, 2026.
Transparency logRelease files / casafari-0.1.10-py3-none-any.whl
| Download URL | casafari-0.1.10-py3-none-any.whl |
|---|---|
| Size | 40.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a011c2da51e31aa5c9e3a8ce2482a14abb0d2a3d28130d4d33eab41f816c17f
|
|
BLAKE2b-256 checksum How to use checksums |
1ca4776522f1d73a6f560160047022ddde10a9f5e49afba66f0b9e01e8c6db2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 23, 2026.
Transparency logSecurity for CASafari 0.1.10
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for casafari-0.1.10.tar.gz
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 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.