This release is a pre-release and may not be stable for production use.
Common 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.
Release files for django-cte 1.3.3.dev20250530125340
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_cte-1.3.3.dev20250530125340.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_cte-1.3.3.dev20250530125340-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:22.3 kB
Release files / django_cte-1.3.3.dev20250530125340.tar.gz
| Download URL | django_cte-1.3.3.dev20250530125340.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea1a52215b8ab4f96087db7d48b807ae52ac85d5e4b4c3412ff3224a8026ab35
|
|
BLAKE2b-256 checksum How to use checksums |
f8079ea1091a94319c6adea841ac1954937038400dae55f42e4085eb830ffea5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2025.
Transparency logRelease files / django_cte-1.3.3.dev20250530125340-py3-none-any.whl
| Download URL | django_cte-1.3.3.dev20250530125340-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3d2ac3083b3113dcbc728a8fbbb164ebbf70a39f5c876f9bd006ede7f75a382
|
|
BLAKE2b-256 checksum How to use checksums |
bb1fc641c2411c9b6e4efd1532bc34672d7bc879e4ff6a71645c128ea6637b63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2025.
Transparency log