Metadata-Version: 2.5
Name: django-octo
Version: 0.1.28
Summary: Enterprise Django-Octo Core Orchestrator unifying SEO, Security, UML, QA, Aurora, and Dual-Channel runtime modules.
Author-email: Jean Carlos <jeanpmodev@gmail.com>
License: MIT
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: django-octo-aurora>=0.1.0
Requires-Dist: django-octo-qa>=0.1.0
Requires-Dist: django-octo-security>=0.1.1
Requires-Dist: django-octo-seo>=0.1.8
Requires-Dist: django-octo-uml>=0.1.0
Requires-Dist: django>=6.1.2
Provides-Extra: dev
Requires-Dist: pytest-django>=4.10.0; extra == 'dev'
Requires-Dist: pytest>=9.0.0; extra == 'dev'
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/jeanpmodev/jeanpmodev/main/assets/django-octo.jpg" alt="Django-Octo-SEO" width="100%" />
</p>

## Django octo pypi library package

## Django octo ecosystem downloads statistics

<!-- START_STATS -->
| Package | Latest Version | Total Downloads | Django Packages Score |
| :--- | :---: | ---: | :---: |
| [django-octo](https://github.com/jeanpmodev/django_octo) | `0.1.19` | [3,534](https://pepy.tech/projects/django-octo) | [53](https://djangopackages.org/packages/p/django_octo/) |
| [django-octo-seo](https://github.com/jeanpmodev/django_octo_seo) | `0.1.7` | [2,376](https://pepy.tech/projects/django-octo-seo) | [48](https://djangopackages.org/packages/p/django_octo_seo/) |
| [django-octo-security](https://github.com/jeanpmodev/django_octo_security) | `0.1.1` | [863](https://pepy.tech/projects/django-octo-security) | [46](https://djangopackages.org/packages/p/django_octo_security/) |
| [django_octo_aurora](https://github.com/jeanpmodev/django_octo_aurora) | `0.1.1` | [397](https://pepy.tech/projects/django_octo_aurora) | [31](https://djangopackages.org/packages/p/django_octo_aurora/) |
| [django_octo_uml](https://github.com/jeanpmodev/django_octo_uml) | `0.1.1` | [571](https://pepy.tech/projects/django_octo_uml) | [50](https://djangopackages.org/packages/p/django_octo_uml/) |
| [django-octo-qa](https://github.com/jeanpmodev/django_octo_qa) | `0.1.3` | [841](https://pepy.tech/projects/django-octo-qa) | [50](https://djangopackages.org/packages/p/django_octo_qa/) |
| **Ecosystem Total** | — | **8,582** | — |
<!-- END_STATS -->


[![License: MIT](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)
[![Python](https://img.shields.io/badge/Python-3.12+-blue)](https://python.org)
[![Framework: Django](https://img.shields.io/badge/Framework-Django-darkgreen)](https://djangoproject.com)
[![Package Manager: Rye](https://img.shields.io/badge/Package_Manager-Rye-orange)](https://astral.sh)
![PyPI Version](https://img.shields.io/pypi/v/django-octo)
[![Latest on Django Packages](https://img.shields.io/badge/Django_Packages-django__octo-8c3c26.svg)](https://djangopackages.org/packages/p/django_octo/)
[![Tests: pytest](https://img.shields.io/badge/Tests-pytest%20passed-2ea44f.svg)](https://github.com/jeanpmodev/django_octo/blob/main/TESTING.md)
[![Code Style: PEP 8](https://img.shields.io/badge/code%20style-PEP%208-blue)](https://peps.python.org/pep-0008/)
[![PyPI Provenance](https://img.shields.io/badge/PyPI-With%20Provenance-blue?logo=pypi&logoColor=white)](https://pypi.org/project/django-octo/#provenance)
[![Snyk Vulnerabilities](https://img.shields.io/badge/Snyk%20Vulnerabilities-0%20known-brightgreen?logo=snyk&logoColor=white)](https://security.snyk.io/package/pip/django-octo)
[![Core Security Audit](https://github.com/jeanpmodev/django_octo/actions/workflows/security.yml/badge.svg)](https://github.com/jeanpmodev/django_octo/actions/workflows/security.yml)
[![Socket Badge](https://badge.socket.dev/pypi/package/django-octo/0.1.10?artifact_id=tar-gz)](https://badge.socket.dev/pypi/package/django-octo/0.1.10?artifact_id=tar-gz)

**django_octo** is the modular core orchestrator for the **Django-Octo** framework ecosystem. It unifies decoupled runtime modules under a single installation entrypoint, providing automated environment discovery, live Dual-Channel observability, and event-driven cumulative versioning.

Designed to remain completely agnostic to domain logic, this core hub dynamically detects active satellite modules installed in the runtime environment (`importlib.util.find_spec` + `importlib.metadata`) and mounts their administrative and public surfaces without manual wiring or tight coupling.

---

##  Key Architectural Features

- **Zero-Config Environment Auto-Discovery:** Exposes `get_installed_octo_apps()` and dynamic URL mounting (`include("django_octo.urls")`), automatically registering only the satellite modules present in the active virtual environment.
- **Automated Control Hub (`/octo/`):** Built-in zero-dependency observability dashboard that introspects installed modules, displays live semantic versions, and bridges direct access between public channels and the Django Admin panel.
- **Event-Driven Cumulative Versioning:** Driven by `repository_dispatch` webhooks from satellite CI/CD pipelines. Every release published in a satellite module automatically increments the core version queue, updates `CHANGELOG.md`, validates cross-module coupling tests, and publishes a verified release to PyPI via OIDC Trusted Publishing.
- **Rye Environment Integration:** Fully integrated with the Rust-based Python package manager for deterministic dependency locking across the entire ecosystem.

---

##  Ecosystem Architecture & Dual-Channel Topology

```mermaid
flowchart TB
    subgraph Satellites["🛰️ Decoupled Satellite Modules"]
        direction LR
        subgraph Edge["🛡️ Web & Security Layer"]
            SEO["<b>django-octo-seo</b>"]
            SEC["<b>django-octo-security</b>"]
        end
        subgraph Ops["🔭 Introspection & QA Layer"]
            AUR["<b>django_octo_aurora</b>"]
            UML["<b>django_octo_uml</b>"]
            QA["<b>django-octo-qa</b>"]
        end
    end

    subgraph Core["🍁 django-octo Core Orchestrator"]
        REG["<b>Runtime Introspection</b>"]
        HUB["<b>Control Hub UI</b>"]
        SYNC["<b>Cumulative Version Engine</b>"]
    end

    subgraph Surfaces["⚡ Unified Dual-Channel Surfaces"]
        PUB["🌐 <b>Public Routes</b>"]
        ADM["🔐 <b>Unified Django Admin</b>"]
    end

    Edge -.-> SYNC
    Ops -.-> SYNC
    Edge --> REG
    Ops --> REG
    REG --> HUB
    HUB --> PUB
    HUB --> ADM
```
---

##  Orchestrated Ecosystem 

| Module Package | Architectural Role | Public Surface | Control Surface |
| :--- | :--- | :--- | :--- |
| **`django-octo`** | Core Orchestrator & Runtime Hub | `/octo/` | Unified `INSTALLED_APPS` & `urls.py` |
| **[`django-octo-seo`](https://github.com/jeanpmodev/django_octo_seo)** | 8-Layer Semantic & JSON-LD Engine | `/seo-demo/` | `/admin/` (SEO Models) |
| **[`django-octo-security`](https://github.com/jeanpmodev/django_octo_security)** | Zero-Dependency CVE & HTTP Posture | `/security-audit/` | `/admin/` (CVE Checker) |
| **[`django_octo_aurora`](https://github.com/jeanpmodev/django_octo_aurora)** | Runtime Software Topology Visualizer | `/aurora/` | `/admin/` (Aurora Snapshots) |
| **[`django_octo_uml`](https://github.com/jeanpmodev/django_octo_uml)** | Runtime Entity-Relationship & UML Engine | — | `/admin/` (UML Architecture) |
| **[`django-octo-qa`](https://github.com/jeanpmodev/django_octo_qa)** | Unified Pytest, Behave & Locust Runner | — | `/admin/` (Quality Assurance) |

---

##  Installation & Quick Start (PyPI)

Install the entire unified ecosystem into any modern Django (`>=6.1.2`) and Python (`>=3.12`) project using **pip** or **Rye**:

### 1. Install Core Package
```bash
pip install django-octo
```
Or using the Rust-backed **Rye** package manager:
```bash
rye add django-octo
```

### 2. Auto-Register Apps & Migrate
Use `get_installed_octo_apps()` in your `settings.py` to automatically load the orchestrator alongside every detected satellite module:
```python
from django_octo import get_installed_octo_apps

INSTALLED_APPS = [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    *get_installed_octo_apps(),
]
```
Apply all unified database migrations in a single pass:
```bash
python3 manage.py migrate
```

### 3. Mount the Unified Router
Include `django_octo.urls` in your root `urls.py` to expose the Control Hub and all active module endpoints simultaneously:
```python
from django.contrib import admin
from django.urls import include, path

urlpatterns = [
    path("admin/", admin.site.urls),
    path("", include("django_octo.urls")),
]
```
Start the server (`python3 manage.py runserver`) and navigate to **`http://127.0.0.1:8000/`** to inspect the live Control Hub.

---

##  Local Sandbox & Development Setup (Using Rye)

```bash
git clone https://github.com/jeanpmodev/django_octo/
cd django_octo
rye sync
rye test
```

---

##  License & Ecosystem Blueprint

Distributed under the permissive terms of the **MIT License**.
