django-octo 0.1.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ import importlib.util
2
+
3
+ __version__ = "0.1.7"
4
+
5
+ OCTO_MODULES = [
6
+ "django_octo_seo",
7
+ "django_octo_security",
8
+ ]
9
+
10
+
11
+ def get_installed_octo_apps() -> list[str]:
12
+ """Auto-discovers installed Django-Octo satellite modules at build/runtime."""
13
+ available = ["django_octo"]
14
+ for module in OCTO_MODULES:
15
+ if importlib.util.find_spec(module) is not None:
16
+ available.append(module)
17
+ return available
django_octo/apps.py ADDED
@@ -0,0 +1,7 @@
1
+ from django.apps import AppConfig
2
+
3
+
4
+ class DjangoOctoConfig(AppConfig):
5
+ default_auto_field = "django.db.models.BigAutoField"
6
+ name = "django_octo"
7
+ verbose_name = "Django-Octo Core Orchestrator"
@@ -0,0 +1,58 @@
1
+ import importlib.metadata
2
+ import importlib.util
3
+ from typing import Any
4
+
5
+ MODULE_CATALOG = [
6
+ {
7
+ "package": "django-octo-seo",
8
+ "module": "django_octo_seo",
9
+ "title": "Semantic & SEO Injection Engine",
10
+ "layer": "8-Layer Metadata & Single-Block JSON-LD",
11
+ "description": "High-performance single-query SEO runtime engine optimizing crawlers, Open Graph, and generative AI indexers.",
12
+ "public_url": "/seo-demo/",
13
+ "admin_url": "/admin/",
14
+ },
15
+ {
16
+ "package": "django-octo-security",
17
+ "module": "django_octo_security",
18
+ "title": "Runtime Security & CVE Audit Engine",
19
+ "layer": "Zero-Dependency OSV.dev & HTTP Posture",
20
+ "description": "Non-intrusive Dual-Channel security posture enforcer and real-time virtual environment CVE auditor.",
21
+ "public_url": "/security-audit/",
22
+ "admin_url": "/admin/",
23
+ },
24
+ ]
25
+
26
+
27
+ def discover_octo_ecosystem() -> dict[str, Any]:
28
+ """Inspects the active runtime environment and builds live module telemetry."""
29
+ try:
30
+ core_version = importlib.metadata.version("django-octo")
31
+ except importlib.metadata.PackageNotFoundError:
32
+ core_version = "0.1.8-dev"
33
+
34
+ modules_status = []
35
+ active_count = 0
36
+
37
+ for item in MODULE_CATALOG:
38
+ is_installed = importlib.util.find_spec(item["module"]) is not None
39
+ version = None
40
+ if is_installed:
41
+ active_count += 1
42
+ try:
43
+ version = importlib.metadata.version(item["package"])
44
+ except importlib.metadata.PackageNotFoundError:
45
+ version = "local-editable"
46
+
47
+ modules_status.append({
48
+ **item,
49
+ "installed": is_installed,
50
+ "version": version,
51
+ })
52
+
53
+ return {
54
+ "core_version": core_version,
55
+ "active_count": active_count,
56
+ "total_catalog": len(MODULE_CATALOG),
57
+ "modules": modules_status,
58
+ }
@@ -0,0 +1,123 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Django-Octo | Core Control Hub</title>
7
+ <style>
8
+ :root {
9
+ --bg: #0b1110;
10
+ --surface: #121c1a;
11
+ --border: #1f332e;
12
+ --accent: #10b981;
13
+ --text: #e2e8f0;
14
+ --muted: #94a3b8;
15
+ }
16
+ body {
17
+ font-family: system-ui, -apple-system, sans-serif;
18
+ background-color: var(--bg);
19
+ color: var(--text);
20
+ margin: 0;
21
+ padding: 2rem;
22
+ line-height: 1.6;
23
+ }
24
+ .container { max-width: 960px; margin: 0 auto; }
25
+ header {
26
+ border-bottom: 1px solid var(--border);
27
+ padding-bottom: 1.5rem;
28
+ margin-bottom: 2rem;
29
+ display: flex;
30
+ justify-content: space-between;
31
+ align-items: center;
32
+ flex-wrap: wrap;
33
+ gap: 1rem;
34
+ }
35
+ h1 { margin: 0; font-size: 1.75rem; color: #fff; }
36
+ .badge {
37
+ background: rgba(16, 185, 129, 0.15);
38
+ color: var(--accent);
39
+ border: 1px solid var(--accent);
40
+ padding: 0.25rem 0.75rem;
41
+ border-radius: 999px;
42
+ font-size: 0.85rem;
43
+ font-weight: 600;
44
+ }
45
+ .grid {
46
+ display: grid;
47
+ grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
48
+ gap: 1.5rem;
49
+ }
50
+ .card {
51
+ background: var(--surface);
52
+ border: 1px solid var(--border);
53
+ border-radius: 10px;
54
+ padding: 1.5rem;
55
+ display: flex;
56
+ flex-direction: column;
57
+ justify-content: space-between;
58
+ }
59
+ .card-header {
60
+ display: flex;
61
+ justify-content: space-between;
62
+ align-items: center;
63
+ margin-bottom: 0.75rem;
64
+ }
65
+ .status-active { color: var(--accent); font-weight: 600; font-size: 0.85rem; }
66
+ .status-inactive { color: var(--muted); font-size: 0.85rem; }
67
+ .layer { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
68
+ p { color: var(--muted); font-size: 0.95rem; }
69
+ .actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
70
+ .btn {
71
+ text-decoration: none;
72
+ padding: 0.5rem 1rem;
73
+ border-radius: 6px;
74
+ font-size: 0.85rem;
75
+ font-weight: 600;
76
+ border: 1px solid var(--border);
77
+ color: var(--text);
78
+ background: #182623;
79
+ }
80
+ .btn-primary {
81
+ background: var(--accent);
82
+ color: #06281e;
83
+ border-color: var(--accent);
84
+ }
85
+ </style>
86
+ </head>
87
+ <body>
88
+ <div class="container">
89
+ <header>
90
+ <div>
91
+ <h1>Django-Octo Control Hub</h1>
92
+ <small style="color: var(--muted);">Dual-Channel Modular Architecture Orchestrator</small>
93
+ </div>
94
+ <span class="badge">Core v{{ core_version }} • {{ active_count }}/{{ total_catalog }} Modules Active</span>
95
+ </header>
96
+
97
+ <section class="grid">
98
+ {% for mod in modules %}
99
+ <article class="card">
100
+ <div>
101
+ <div class="layer">{{ mod.layer }}</div>
102
+ <div class="card-header">
103
+ <h2 style="margin: 0.25rem 0; font-size: 1.2rem;">{{ mod.title }}</h2>
104
+ {% if mod.installed %}
105
+ <span class="status-active">● v{{ mod.version }}</span>
106
+ {% else %}
107
+ <span class="status-inactive">○ Not Installed</span>
108
+ {% endif %}
109
+ </div>
110
+ <p>{{ mod.description }}</p>
111
+ </div>
112
+ {% if mod.installed %}
113
+ <div class="actions">
114
+ <a href="{{ mod.public_url }}" class="btn btn-primary">Public Channel</a>
115
+ <a href="{{ mod.admin_url }}" class="btn">Admin Panel</a>
116
+ </div>
117
+ {% endif %}
118
+ </article>
119
+ {% endfor %}
120
+ </section>
121
+ </div>
122
+ </body>
123
+ </html>
django_octo/urls.py ADDED
@@ -0,0 +1,13 @@
1
+ import importlib.util
2
+ from django.urls import include, path
3
+ from .views import octo_hub_view
4
+
5
+ urlpatterns = [
6
+ path("octo/", octo_hub_view, name="django_octo_hub"),
7
+ ]
8
+
9
+ if importlib.util.find_spec("django_octo_seo") is not None:
10
+ urlpatterns.append(path("seo-demo/", include("django_octo_seo.urls")))
11
+
12
+ if importlib.util.find_spec("django_octo_security") is not None:
13
+ urlpatterns.append(path("", include("django_octo_security.urls")))
django_octo/views.py ADDED
@@ -0,0 +1,8 @@
1
+ from django.shortcuts import render
2
+ from .registry import discover_octo_ecosystem
3
+
4
+
5
+ def octo_hub_view(request):
6
+ """Renders the automated Control Hub documenting all active Django-Octo modules."""
7
+ context = discover_octo_ecosystem()
8
+ return render(request, "django_octo/hub.html", context)
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.5
2
+ Name: django-octo
3
+ Version: 0.1.7
4
+ Summary: Enterprise Django-Octo Core Orchestrator unifying SEO, Security, and Dual-Channel runtime modules.
5
+ Author-email: Jean Carlos <jeanpmodev@gmail.com>
6
+ License: MIT
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.12
9
+ Requires-Dist: django-octo-security>=0.1.0
10
+ Requires-Dist: django-octo-seo>=0.1.6
11
+ Requires-Dist: django>=6.1.2
12
+ Description-Content-Type: text/markdown
13
+
14
+ # django_octo
15
+ Modular Django-Octo Core Orchestrator for decoupled runtime modules, automated environment discovery, and event-driven cumulative versioning.
@@ -0,0 +1,10 @@
1
+ django_octo/__init__.py,sha256=AhujFN8WZv9bbnIXOH8vFHPsIZLh2PnTkdCAUtUJ1Bw,424
2
+ django_octo/apps.py,sha256=bAs1XoFZY964TprshBp82kcSt-1k9IKIFsgSmRodCm0,204
3
+ django_octo/registry.py,sha256=38qqiPkuupUEQ8lrpU_-_34PAavh3NNfyuAr9fyNU4E,1941
4
+ django_octo/urls.py,sha256=JNK2ensb9zppMbdq2q2GZLldibyxkENdz08mcoZzfzo,443
5
+ django_octo/views.py,sha256=KjOMMYNBtNiVVVd4Jokq9ZnDsPZFZq00L4LCaiYE4Po,300
6
+ django_octo/templates/django_octo/hub.html,sha256=MpQzCngnJJUn4HNU-GjP1CARee-avKlQXM-shyejmbg,4312
7
+ django_octo-0.1.7.dist-info/METADATA,sha256=jBBEigKYq_BLwNjv2qkWe9VMHeBPpE6G0I7UF4XGYQY,578
8
+ django_octo-0.1.7.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
9
+ django_octo-0.1.7.dist-info/licenses/LICENSE,sha256=nIuOMEJyF9AzsvVph-cREBfflR2AKVdExlfn13gQU1U,1068
10
+ django_octo-0.1.7.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jean Carlos
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.