Metadata-Version: 2.4
Name: django-lokconfig
Version: 1.0.0
Summary: Reusable Django runtime configuration: persistent YAML settings, setup, migrations, and restart requests
Author-email: Loknus Labs LLC <loknuslabs@gmail.com>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/loknuslabs/django-lokconfig
Project-URL: Documentation, https://github.com/loknuslabs/django-lokconfig#readme
Project-URL: Repository, https://github.com/loknuslabs/django-lokconfig
Keywords: django,configuration,yaml,settings,setup
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 6.0
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django>=6.0.6
Requires-Dist: djangorestframework>=3.17.1
Requires-Dist: PyYAML>=6.0.2
Provides-Extra: example
Requires-Dist: gunicorn>=23.0.0; extra == "example"
Provides-Extra: dev
Requires-Dist: black==26.5.1; extra == "dev"
Requires-Dist: flake8>=7.3.0; extra == "dev"
Requires-Dist: mypy>=1.19.0; extra == "dev"
Requires-Dist: django-stubs>=5.2.0; extra == "dev"
Requires-Dist: djangorestframework-stubs>=3.16.0; extra == "dev"
Requires-Dist: pytest>=9.0.3; extra == "dev"
Requires-Dist: pytest-django>=4.12.0; extra == "dev"
Requires-Dist: pip-audit>=2.10.0; extra == "dev"
Dynamic: license-file

# Django Lokconfig

Reusable runtime configuration for Loknus Labs Django applications.

Configuration that belongs to the deployment (secrets, database URLs, broker URLs) stays in environment variables. Configuration that operators and administrators should change without rebuilding the image is stored in a YAML file, validated, migrated, and exposed through a setup and administration API.

```bash
pip install django-lokconfig
```

```python
INSTALLED_APPS = ["lokconfig", ...]
LOKCONFIG_DEFINITION = "myapp.runtime_config.DEFINITION"
```

```python
# urls.py
path("api/", include("lokconfig.urls"))
```

See [docs/README.md](docs/README.md) for architecture, API, migrations, the setup wizard, and deployment.

The example project is in `example/`. `example/docker-compose.yml` mounts a persistent volume at `/data`. The reusable React wizard is in `frontend/` and is installed with Yarn.

## Local development

```bash
pip install -e ".[dev]"
pytest
python manage.py check --deploy
```

```bash
cd frontend
yarn install
yarn test
yarn dev
```
