Metadata-Version: 2.4
Name: django-cfg
Version: 2.4.120
Summary: Django CFG by CMDOP: typed Pydantic configuration, modular Django apps, generated API clients and a complete frontend development workspace.
Project-URL: Homepage, https://djangocfg.cmdop.ai
Project-URL: Documentation, https://djangocfg.cmdop.ai
Project-URL: Repository, https://github.com/commandoperator/cmdop-djangocfg
Project-URL: Issues, https://github.com/commandoperator/cmdop-djangocfg/issues
Project-URL: Changelog, https://github.com/commandoperator/cmdop-djangocfg/blob/main/CHANGELOG.md
Author-email: Django-CFG Team <info@djangocfg.com>
Maintainer-email: Django-CFG Team <info@djangocfg.com>
License: MIT
License-File: LICENSE
Keywords: ai-agents,configuration,django,django-environ,django-settings,enterprise-django,ide-autocomplete,modern-django,nextjs-admin,pydantic,pydantic-settings,react-admin,settings,startup-validation,type-safe-config,type-safety,typescript-generation
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Systems Administration
Classifier: Typing :: Typed
Requires-Python: <3.14,>=3.12
Requires-Dist: adrf<0.2.0,>=0.1.11
Requires-Dist: aiohttp<4.0,>=3.13.4
Requires-Dist: aiometer<2.0,>=1.0.0
Requires-Dist: beautifulsoup4<5.0,>=4.13.0
Requires-Dist: c2pa-python!=0.38.2,>=0.38.0
Requires-Dist: cachetools<7.0,>=5.3.0
Requires-Dist: click<9.0,>=8.2.0
Requires-Dist: coolname<3.0,>=2.2.0
Requires-Dist: cryptography>=46.0.7
Requires-Dist: django-admin-rangefilter<1.0,>=0.13.0
Requires-Dist: django-axes[ipware]<10.0.0,>=8.0.0
Requires-Dist: django-constance<5.0,>=4.3.0
Requires-Dist: django-cors-headers<5.0,>=4.7.0
Requires-Dist: django-extensions<5.0,>=4.1.0
Requires-Dist: django-filter<27.0,>=25.0
Requires-Dist: django-import-export<5.0,>=4.3.0
Requires-Dist: django-json-widget<3.0,>=2.0.0
Requires-Dist: django-ratelimit<5.0.0,>=4.1.0
Requires-Dist: django-redis<8.0,>=6.0.0
Requires-Dist: django-simple-history<4.0,>=3.7.0
Requires-Dist: django-tailwind[reload]<5.0.0,>=4.2.0
Requires-Dist: django<6.2,>=5.2.14
Requires-Dist: djangorestframework-simplejwt<6.0,>=5.5.1
Requires-Dist: djangorestframework<4.0,>=3.16.0
Requires-Dist: drf-nested-routers<1.0,>=0.95.0
Requires-Dist: drf-spectacular-sidecar<2026.0,>=2025.8.0
Requires-Dist: drf-spectacular<1.0,>=0.28.0
Requires-Dist: email-validator<3.0,>=2.3.0
Requires-Dist: geopy<3.0,>=2.4.0
Requires-Dist: hiredis<4.0,>=2.0.0
Requires-Dist: httpx<1.0,>=0.28.1
Requires-Dist: jinja2<4.0.0,>=3.1.6
Requires-Dist: json-repair<1.0,>=0.30
Requires-Dist: lxml<7.0,>=6.1.0
Requires-Dist: mistune<4.0,>=3.2.1
Requires-Dist: notion-client<4.0,>=3.1.0
Requires-Dist: openai<3.0,>=2.45.0
Requires-Dist: opencv-python-headless>=5.0.0.93
Requires-Dist: pgvector<1.0,>=0.4.2
Requires-Dist: pillow<13.0,>=12.2.0
Requires-Dist: platformdirs<5.0,>=4.0
Requires-Dist: psutil>=7.0.0
Requires-Dist: psycopg[binary,pool]<4.0,>=3.2.0
Requires-Dist: pydantic-settings<3.0.0,>=2.11.0
Requires-Dist: pydantic-yaml<2.0,>=1.6.0
Requires-Dist: pydantic<3.0,>=2.11.0
Requires-Dist: pydantic[email]<3.0,>=2.11.0
Requires-Dist: pygments<3.0,>=2.20.0
Requires-Dist: pyotp<3.0,>=2.9.0
Requires-Dist: pytelegrambotapi<5.0,>=4.28.0
Requires-Dist: pyyaml<7.0,>=6.0
Requires-Dist: qrcode<9.0,>=8.2
Requires-Dist: questionary<3.0,>=2.1.0
Requires-Dist: redis<7.0,>=6.4.0
Requires-Dist: remove-ai-watermarks<1.0,>=0.58.1
Requires-Dist: requests<3.0,>=2.33.0
Requires-Dist: rich<15.0,>=14.0.0
Requires-Dist: setuptools>=75.0.0; python_version >= '3.13'
Requires-Dist: tenacity<10.0.0,>=9.1.2
Requires-Dist: tiktoken<1.0,>=0.12.0
Requires-Dist: tzlocal<6.0,>=5.3.1
Requires-Dist: ua-parser[regex]<2.0,>=1.0.0
Requires-Dist: whitenoise<7.0,>=6.8.0
Provides-Extra: ai
Requires-Dist: pydantic-ai-harness[code-mode]<0.7,>=0.6.0; extra == 'ai'
Requires-Dist: pydantic-ai-slim[openai]<3.0,>=2.10.0; extra == 'ai'
Requires-Dist: pydantic-monty<0.0.19,>=0.0.16; extra == 'ai'
Requires-Dist: toon-format<2.0,>=1.0.0; extra == 'ai'
Provides-Extra: dev
Requires-Dist: betterproto2-compiler<1.0,>=0.9.0; extra == 'dev'
Requires-Dist: black>=23.0; extra == 'dev'
Requires-Dist: build>=1.0; extra == 'dev'
Requires-Dist: django-stubs[compatible-mypy]<7.0,>=5.2.9; extra == 'dev'
Requires-Dist: django<6.2,>=5.2.14; extra == 'dev'
Requires-Dist: djangorestframework-stubs[compatible-mypy]<4.0,>=3.16.8; extra == 'dev'
Requires-Dist: factory-boy>=3.0; extra == 'dev'
Requires-Dist: fakeredis>=2.0; extra == 'dev'
Requires-Dist: flake8>=5.0; extra == 'dev'
Requires-Dist: isort>=5.0; extra == 'dev'
Requires-Dist: mkdocs-material>=9.0; extra == 'dev'
Requires-Dist: mkdocs>=1.5; extra == 'dev'
Requires-Dist: mkdocstrings[python]>=0.24; extra == 'dev'
Requires-Dist: mypy<2.0.0,>=1.18.2; extra == 'dev'
Requires-Dist: pre-commit>=3.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest-django>=4.5; extra == 'dev'
Requires-Dist: pytest-mock>=3.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: questionary>=2.0; extra == 'dev'
Requires-Dist: redis>=5.0; extra == 'dev'
Requires-Dist: rich>=13.0; extra == 'dev'
Requires-Dist: tomlkit>=0.11; extra == 'dev'
Requires-Dist: twine>=4.0; extra == 'dev'
Provides-Extra: django52
Requires-Dist: django<6.2,>=5.2.14; extra == 'django52'
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.0; extra == 'docs'
Requires-Dist: mkdocs>=1.5; extra == 'docs'
Requires-Dist: mkdocstrings[python]>=0.24; extra == 'docs'
Requires-Dist: pymdown-extensions>=10.0; extra == 'docs'
Provides-Extra: full
Requires-Dist: alembic<2.0,>=1.13; extra == 'full'
Requires-Dist: asyncpg<1.0,>=0.29; extra == 'full'
Requires-Dist: boto3<2.0,>=1.34; extra == 'full'
Requires-Dist: django-rq>=4.2.0; extra == 'full'
Requires-Dist: django-storages<2.0,>=1.14; extra == 'full'
Requires-Dist: django<6.2,>=5.2.14; extra == 'full'
Requires-Dist: hiredis>=2.0; extra == 'full'
Requires-Dist: openapi-python-client<1,>=0.21; extra == 'full'
Requires-Dist: pydantic-ai-harness[code-mode]<0.7,>=0.6.0; extra == 'full'
Requires-Dist: pydantic-ai-slim[openai]<3.0,>=2.10.0; extra == 'full'
Requires-Dist: pydantic-monty<0.0.19,>=0.0.16; extra == 'full'
Requires-Dist: pytest-django>=4.5; extra == 'full'
Requires-Dist: pytest-mock>=3.0; extra == 'full'
Requires-Dist: pytest>=7.0; extra == 'full'
Requires-Dist: questionary>=2.0; extra == 'full'
Requires-Dist: redis>=5.0; extra == 'full'
Requires-Dist: rich>=13.0; extra == 'full'
Requires-Dist: rq<4.0,>=3.0.0; extra == 'full'
Requires-Dist: sqlalchemy<3.0,>=2.0; extra == 'full'
Requires-Dist: sqlmodel<1.0,>=0.0.16; extra == 'full'
Requires-Dist: stripe<16.0,>=15.3.0; extra == 'full'
Requires-Dist: toon-format<2.0,>=1.0.0; extra == 'full'
Requires-Dist: uvicorn<1.0,>=0.53; extra == 'full'
Requires-Dist: websockets<17,>=13; extra == 'full'
Provides-Extra: gen
Requires-Dist: alembic<2.0,>=1.13; extra == 'gen'
Requires-Dist: asyncpg<1.0,>=0.29; extra == 'gen'
Requires-Dist: grpcio-tools<2.0,>=1.50.0; extra == 'gen'
Requires-Dist: openapi-python-client<1,>=0.21; extra == 'gen'
Requires-Dist: protobuf<7.0,>=5.0; extra == 'gen'
Requires-Dist: sqlalchemy<3.0,>=2.0; extra == 'gen'
Requires-Dist: sqlmodel<1.0,>=0.0.16; extra == 'gen'
Provides-Extra: geoip
Requires-Dist: geoip2<6.0,>=5.0; extra == 'geoip'
Provides-Extra: local
Provides-Extra: mcp-sql
Requires-Dist: pglast<9.0,>=7.0; extra == 'mcp-sql'
Provides-Extra: payments
Requires-Dist: stripe<16.0,>=15.3.0; extra == 'payments'
Provides-Extra: realtime
Requires-Dist: uvicorn<1.0,>=0.53; extra == 'realtime'
Requires-Dist: websockets<17,>=13; extra == 'realtime'
Provides-Extra: rq
Requires-Dist: django-rq>=4.2.0; extra == 'rq'
Requires-Dist: hiredis>=2.0; extra == 'rq'
Requires-Dist: redis>=5.0; extra == 'rq'
Requires-Dist: rq<4.0,>=3.0.0; extra == 'rq'
Provides-Extra: s3
Requires-Dist: boto3<2.0,>=1.34; extra == 's3'
Requires-Dist: django-storages<2.0,>=1.14; extra == 's3'
Provides-Extra: test
Requires-Dist: django<6.2,>=5.2.14; extra == 'test'
Requires-Dist: factory-boy>=3.0; extra == 'test'
Requires-Dist: fakeredis>=2.0; extra == 'test'
Requires-Dist: import-linter>=2.0; extra == 'test'
Requires-Dist: pglast<9.0,>=7.0; extra == 'test'
Requires-Dist: pytest-cov>=4.0; extra == 'test'
Requires-Dist: pytest-django>=4.5; extra == 'test'
Requires-Dist: pytest-mock>=3.0; extra == 'test'
Requires-Dist: pytest-xdist>=3.0; extra == 'test'
Requires-Dist: pytest>=7.0; extra == 'test'
Description-Content-Type: text/markdown

# Django CFG by CMDOP

**Type-safe Django. A complete application workspace. Part of CMDOP AI.**

[![PyPI](https://img.shields.io/pypi/v/django-cfg)](https://pypi.org/project/django-cfg/)
[![Python](https://img.shields.io/badge/python-3.12%20%7C%203.13-blue)](https://www.python.org/)
[![Django](https://img.shields.io/badge/Django-5.2%20LTS%20%7C%206.0%20%7C%206.1-green)](https://www.djangoproject.com/)
[![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/commandoperator/cmdop-djangocfg/blob/main/LICENSE)

[Documentation](https://djangocfg.cmdop.ai/) ·
[CMDOP AI](https://cmdop.ai/) ·
[Issues](https://github.com/commandoperator/cmdop-djangocfg/issues)

Django CFG is an open-source framework for building typed Django
applications and their frontend workspaces. It replaces hand-maintained
configuration with validated Pydantic models and brings backend,
generated API clients, frontend components, developer documentation
and Docker development together in one reusable solution.

Use the Python package independently, or run the complete reference
workspace with optional CMDOP connectivity. The framework does not
require a CMDOP account to run.

## What you get

| Layer | Capabilities |
|---|---|
| Django | Typed configuration, modular apps, admin, authentication, storage and jobs |
| API | DRF/OpenAPI contracts and generated TypeScript, Python and Go clients |
| Frontend | Next.js, layouts, i18n, UI components, data clients and widgets |
| Realtime | WebSocket workflows and supported streaming integrations |
| Development | Git-root workflow, isolated Docker runtime, Docs, Demo and Storybook |
| Delivery | Verified frontend builds, immutable SSR images and retained static assets |
| AI and MCP | Read-only documentation assistance, authenticated project tools and optional machine connectivity |

## Install the Python package

~~~sh
python -m pip install django-cfg
django-cfg info
~~~

Requires Python 3.12 or 3.13 and Django 5.2 LTS (5.2.14 or newer), 6.0 or 6.1.
Start with the base package or choose optional extras. See the
[installation guide](https://djangocfg.cmdop.ai/getting-started/installation).

For a standalone starter:

~~~sh
django-cfg create-project myproject
cd myproject
~~~

Follow the installation guide to configure and run your application.
This package-only route is not the complete Git-root workflow.

## Run the complete development workspace

On an owned Linux host with Docker Engine, Compose v2, Buildx, Git,
Python 3.10 or newer, curl and OpenSSL with Ed25519 support, follow
the [DevOps quick start](https://djangocfg.cmdop.ai/devops/quick-start)
and [canonical runtime instructions](https://github.com/commandoperator/cmdop-djangocfg/blob/main/solution/docker/README.md).
This is a development environment, not a production deployment.

~~~sh
git clone https://github.com/commandoperator/cmdop-djangocfg.git
cd cmdop-djangocfg
git rev-parse HEAD

# Provision the base images if not already available.
docker pull postgres:17-alpine
docker pull redis:7.4-alpine
docker pull nginx:1.28-alpine

python3 solution/docker/scripts/canonical_launcher.py init \
  --root "$PWD" --state-dir "$HOME/.local/share/my-django-cfg" \
  --project my-django-cfg --base-port 28080 --machine my-django-cfg-dev
python3 solution/docker/scripts/canonical_launcher.py bootstrap \
  --env-file "$HOME/.local/share/my-django-cfg/private.env"
python3 solution/docker/scripts/canonical_launcher.py inspect \
  --env-file "$HOME/.local/share/my-django-cfg/private.env"
python3 solution/docker/scripts/canonical_launcher.py start \
  --env-file "$HOME/.local/share/my-django-cfg/private.env"
python3 solution/docker/scripts/canonical_launcher.py status \
  --env-file "$HOME/.local/share/my-django-cfg/private.env"
curl --fail http://127.0.0.1:28083/healthz/ready
~~~

Choose unused ports and a unique project identity. Bootstrap verifies
the signed CMDOP toolbox input and installs locked dependencies.
The launcher keeps private state outside Git, uses isolated
application services and exposes loopback previews only by default.

| Local service | Example |
|---|---|
| Demo | localhost:28080 |
| Docs | localhost:28081 |
| Storybook | localhost:28082 |
| Django API | localhost:28083 |

The public docs website hosts documentation only. Run Demo and API
inside your own workspace.

## AI and MCP integration

Choose the permission boundary appropriate to your assistant:

- **Documentation:** the local documentation MCP in `@djangocfg/nextjs`
  exposes read-only `search_docs` and `get_docs` over stdio, using the
  static documentation index. It requires a released package with this
  functionality and the published index; there is no hosted documentation
  MCP endpoint.
- **Application MCP:** authorized project users can connect with their
  own credentials, or OAuth when enabled. The user-facing profile exposes
  only eligible tools, with per-operation authorization still required.
  The deployment operator profile is separate. The default Django Admin
  Overview is an operational dashboard, not an
  embedded MCP connection or chat client.
- **CMDOP:** optional development-machine connectivity requires separate
  machine admission and permissions. Documentation or application MCP
  access does not grant machine control.

See the [AI and MCP integration guide](https://djangocfg.cmdop.ai/guides/ai-mcp)
and [Connect assistants](https://djangocfg.cmdop.ai/features/modules/django-mcp/connect-assistants).

## Develop with CMDOP

CMDOP provides optional machine connectivity for developers and AI
clients. The workspace supports explicit machine admission and
cooperative Git-root development. The launcher does not enroll
machines automatically or grant external access.

- [Development workflow](https://github.com/commandoperator/cmdop-djangocfg/blob/main/workflow/README.md)
- [Remote development](https://djangocfg.cmdop.ai/devops/remote-development)
- [CMDOP documentation](https://docs.cmdop.ai/)

## Build and verify frontend images

The [SSR workflow](https://github.com/commandoperator/cmdop-djangocfg/blob/main/solution/docker/scripts/ssr/README.md) builds from
committed source and frozen dependencies, verifies candidate receipts,
checks the complete runtime image inventory and runs HTTP smoke tests.
Retained immutable static assets support compatible rollback preparation.
These are build-only tools; production routing, state, TLS and activation
belong to the deployment owner.

## Repository layout

~~~text
django_cfg/                    Python package
solution/projects/django/     Reference Django application
solution/projects/frontend/   Apps, packages and widgets
solution/docker/              Canonical runtime and SSR tools
workflow/                     Cooperative development workflow
installers/                   Installer entry points
~~~

## Documentation and contributions

Read the [documentation](https://djangocfg.cmdop.ai/) for setup,
configuration, API generation, frontend architecture and operations.
Report bugs in [GitHub Issues](https://github.com/commandoperator/cmdop-djangocfg/issues).
See [CONTRIBUTING.md](https://github.com/commandoperator/cmdop-djangocfg/blob/main/CONTRIBUTING.md) and [CHANGELOG.md](https://github.com/commandoperator/cmdop-djangocfg/blob/main/CHANGELOG.md).

## License

MIT. See [LICENSE](https://github.com/commandoperator/cmdop-djangocfg/blob/main/LICENSE). Django CFG is part of the CMDOP AI ecosystem.
Django and other third-party projects retain their names and licenses.
