Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_cte-4.0.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_cte-4.0.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file django_cte-4.0.0.tar.gz.

File metadata

  • Download URL: django_cte-4.0.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_cte-4.0.0.tar.gz
Algorithm Hash digest
SHA256 bb8dd23c19111c1e55c19dc5ffb30abee354c3f57c869baace90131e1463d74d
MD5 a48f88182ffdfb2734e83f995ec5dd31
BLAKE2b-256 86689d533b1fec250a0e4f659ef5116646cf9e61c353629f252cd5aa36587c56

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cte-4.0.0.tar.gz:

Publisher: pypi.yml on dimagi/django-cte

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_cte-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_cte-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_cte-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf708d4172063d9a43b087a3d93b6d048c50a24fac46b04f45f274761af6db35
MD5 bfe7d3138f6d1dc32130ae8435699bcb
BLAKE2b-256 73373374d9a4dca2bd38806b3f00b8140bce59433e8342f2ffae166a55de8f86

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cte-4.0.0-py3-none-any.whl:

Publisher: pypi.yml on dimagi/django-cte

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 files

3.0.0

2 files

2.0.0

2 files

1.3.3

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1

2 files

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