Django runtime utilities, mixins, adapters, and reusable modules for Codex projects
Project description
codex-django
Django runtime integration layer for the Codex ecosystem: reusable modules, cabinet UI building blocks, and shared adapters for Codex-shaped Django projects.
Project scaffolding now lives in the companion package codex-django-cli, while this repository focuses on installable runtime code.
Install
# Runtime library only
pip install codex-django
# Runtime + companion CLI package
pip install "codex-django[cli]"
# Runtime + CLI + day-to-day development toolchain
pip install "codex-django[dev]"
Requires Python 3.12 or newer.
Project Scaffolding
The codex-django runtime package no longer owns the CLI implementation.
Use the companion package when you want to scaffold or extend a project:
pip install "codex-django[cli]"
# or: pip install codex-django-cli
codex-django init myproject
codex-django add-client-cabinet --project myproject
Temporary compatibility shims remain under codex_django.cli, but the real CLI code lives in codex-django-cli.
Development
uv sync --extra dev
uv run pytest
uv run mypy src/
uv run pre-commit run --all-files
uv build --no-sources
Quick Start
Runtime Example
from datetime import date
from codex_django.booking import DjangoAvailabilityAdapter
from codex_django.booking.selectors import get_available_slots
adapter = DjangoAvailabilityAdapter(
master_model=Master,
appointment_model=Appointment,
service_model=Service,
working_day_model=MasterWorkingDay,
day_off_model=MasterDayOff,
booking_settings_model=BookingSettings,
site_settings_model=SiteSettings,
)
result = get_available_slots(
adapter=adapter,
service_ids=[1],
target_date=date.today(),
)
print(result.get_unique_start_times())
What Each Optional Module Adds
cabinet: user-facing dashboard pages, profile/settings views, and cabinet adapters.booking: booking app scaffolds, booking settings, cabinet booking pages, and booking templates.notifications: notification content models, service hooks, and ARQ client scaffolding.
Modules
| Module | Extra | Description |
|---|---|---|
codex_django.core |
- | Shared Django infrastructure: mixins, SEO access path, i18n helpers, sitemap base, Redis managers. |
codex_django.system |
- | Project-state models and admin workflows: site settings, static content, integrations, fixture orchestration. |
codex_django.notifications |
- | Django notification orchestration: content selector, payload builder, queue/direct adapters. |
codex_django.booking |
- | Django adapter layer over codex-services booking engine: model mixins, availability adapter, booking selectors. |
codex_django.cabinet |
- | Reusable cabinet/dashboard framework with registry-based navigation, widgets, and cached settings. |
codex_django.cli |
compat only | Temporary forwarding layer to codex-django-cli; not part of the long-term runtime surface. |
codex_django.showcase |
- | DEBUG-only showcase layer for demo screens and generated-project previews backed by mock data. |
Documentation
Full docs with architecture, API reference, and generated project structure:
https://codexdlc.github.io/codex-django/
Part of the Codex ecosystem
| Package | Role |
|---|---|
| codex-core | Foundation — immutable DTOs, PII masking, env settings |
| codex-platform | Infrastructure — Redis, Streams, ARQ workers, Notifications |
| codex-ai | LLM layer — unified async interface for OpenAI, Gemini, Anthropic |
| codex-services | Business logic — Booking engine, CRM, Calendar |
Each library is fully standalone — install only what your project needs. Together they form the backbone of codex-bot (Telegram AI-agent infrastructure built on aiogram) and codex-django (Django integration layer and scaffolding toolkit).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codex_django-0.2.7.tar.gz.
File metadata
- Download URL: codex_django-0.2.7.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0fce2448135fd983050072e6bc2f2554ccfeb38a0497873bfafc8a9ef77c277
|
|
| MD5 |
2be13dd7e76e570e64b410da78eeb53a
|
|
| BLAKE2b-256 |
d373cdf48a50f554fdd6591f675aa235612403f4b3d76bdc23fa8d89406ba34d
|
Provenance
The following attestation bundles were made for codex_django-0.2.7.tar.gz:
Publisher:
publish.yml on CodexDLC/codex-django
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_django-0.2.7.tar.gz -
Subject digest:
c0fce2448135fd983050072e6bc2f2554ccfeb38a0497873bfafc8a9ef77c277 - Sigstore transparency entry: 1239336006
- Sigstore integration time:
-
Permalink:
CodexDLC/codex-django@d98aefcc218cfe93e179d01fe8ac06d7a1c70b76 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/CodexDLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d98aefcc218cfe93e179d01fe8ac06d7a1c70b76 -
Trigger Event:
push
-
Statement type:
File details
Details for the file codex_django-0.2.7-py3-none-any.whl.
File metadata
- Download URL: codex_django-0.2.7-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e0843607116f82339b4d1d320ddc38d744fa17b9cb9528a743f2e61538db220
|
|
| MD5 |
3671f0a620ebfe27a1e9991b498ebeb4
|
|
| BLAKE2b-256 |
e443cb435fc3e749bcc4ff6e1b0ab249f7ffad8a5cd2510a14d138d22ef6dc7a
|
Provenance
The following attestation bundles were made for codex_django-0.2.7-py3-none-any.whl:
Publisher:
publish.yml on CodexDLC/codex-django
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_django-0.2.7-py3-none-any.whl -
Subject digest:
1e0843607116f82339b4d1d320ddc38d744fa17b9cb9528a743f2e61538db220 - Sigstore transparency entry: 1239336007
- Sigstore integration time:
-
Permalink:
CodexDLC/codex-django@d98aefcc218cfe93e179d01fe8ac06d7a1c70b76 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/CodexDLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d98aefcc218cfe93e179d01fe8ac06d7a1c70b76 -
Trigger Event:
push
-
Statement type: