django-cte
v3.0.0Common Table Expressions (CTE) for Django
13 KB Python 3.9+ py3-none-anyBSD-3-Clause1 deps
$ uv add django-cteCommon Table Expressions with Django
Installation
pip install django-cte
Documentation
The django-cte documentation shows how to use Common Table Expressions with the Django ORM.
Running tests
cd django-cte
uv sync
pytest
ruff check
# To run tests against postgres
psql -U username -h localhost -p 5432 -c 'create database django_cte;'
export PG_DB_SETTINGS='{
"ENGINE":"django.db.backends.postgresql_psycopg2",
"NAME":"django_cte",
"USER":"username",
"PASSWORD":"password",
"HOST":"localhost",
"PORT":"5432"}'
# WARNING pytest will delete the test_django_cte database if it exists!
DB_SETTINGS="$PG_DB_SETTINGS" pytest
All feature and bug contributions are expected to be covered by tests.
Publishing a new verison to PyPI
Push a new tag to Github using the format vX.Y.Z where X.Y.Z matches the version
in __init__.py.
A new version is published to https://test.pypi.org/p/django-cte on every push to the main branch.
Publishing is automated with Github Actions.
Details
- Version
- 3.0.0
- License
- BSD-3-Clause
- Python
- >=3.9
- Maintainer
- Daniel Miller <[email protected]>
Links
Release Cadence
13
releases in the past year
avg 84 days between releases
Maintainers
- Daniel Miller · [email protected]