Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Common Table Expressions with Django

Build Status PyPI version

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.

Metadata

Release files for django-cte 5.0.0.dev20261027111343

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cte 5.0.0.dev20261027111343
File Size Uploaded Provenance Actions
django_cte-5.0.0.dev20261027111343.tar.gz 12.5 kB With provenance Details for django_cte-5.0.0.dev20261027111343.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-cte 5.0.0.dev20261027111343
File Interpreter ABI Platform Actions
django_cte-5.0.0.dev20261027111343-py3-none-any.whl Python 3 none any Details for django_cte-5.0.0.dev20261027111343-py3-none-any.whl

Total release size: 26.6 kB

Release files / django_cte-5.0.0.dev20261027111343.tar.gz

Download URL django_cte-5.0.0.dev20261027111343.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
27cd83cdbb27107e94df8d28536b0c8e5c520115f7a31d19169dfd2cd69482d9
BLAKE2b-256 checksum
How to use checksums
0fd246bd4023f2b4085385a037b14f198ccd54fc8bf28ab043acefc8dee082b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

Release files / django_cte-5.0.0.dev20261027111343-py3-none-any.whl

Download URL django_cte-5.0.0.dev20261027111343-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
547509070aecd2cb5548fb76ad8d8633503a577ded4431d82c3a41befeb09ffb
BLAKE2b-256 checksum
How to use checksums
12b14de1a3ea6daa03dd039c0b0cddae5182ac05900b654d9c92a48125f2be95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

Security for django-cte 5.0.0.dev20261027111343

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_cte-5.0.0.dev20261027111343.tar.gz

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 Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page