Skip to main content
https://travis-ci.org/ambitioninc/django-query-builder.png https://coveralls.io/repos/ambitioninc/django-query-builder/badge.png?branch=develop Latest PyPI version https://pypip.in/d/django-query-builder/badge.png

django-query-builder

querybuilder is a django library for assisting with the construction and execution of sql. This is not meant to replace django querysets; it is meant for managing complex queries and helping perform database operations that django doesn’t handle.

Why use querybuilder?

The django querybuilder allows you to control all parts of the query construction. This is happens more clearly because the function calls more closely represent the actual sql keywords.

Why not just use django’s .raw() function?

While the raw function lets you execute custom sql, it doesn’t provide any way for the developer to build the query dynamically. Users lacking experience writing “raw” sql should avoid using querybuilder and stick with django’s querysets. The querybuilder’s query construction closely mirrors writing sql, where django querysets simplify the sql generation process for simple queries.

Requirements

  • Python 3.10 - 3.14

  • Django 5.2 - 6.0

  • Postgres 14+

Installation

To install the latest release, type:

pip install django-query-builder

To install the latest code directly from source, type:

pip install git+git://github.com/ambitioninc/django-query-builder.git

Documentation

Full documentation is available at http://django-query-builder.readthedocs.org

License

MIT License (see LICENSE)

Download files

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

Source Distribution

django_query_builder-4.0.0.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

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

django_query_builder-4.0.0-py2.py3-none-any.whl (57.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django_query_builder-4.0.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.14

File hashes

Hashes for django_query_builder-4.0.0.tar.gz
Algorithm Hash digest
SHA256 2a63c51a30e238d0178b19d2a98e7123cd19e1568461edbfdd85a6b1b66a889d
MD5 e9fcb06ad134aadddc07bf16e334d60d
BLAKE2b-256 c696d4b0ed80a0ce79dd9dfa1df46c9d90ab690e904b20aeb513887934a7d952

See more details on using hashes here.

File details

Details for the file django_query_builder-4.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_query_builder-4.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 06e98392a0d0eb852a36572f3b7d7653dd1e1151f70646feca542cc6236953a0
MD5 afaf7543e87bf8d0efa7525bb2494428
BLAKE2b-256 21bbf891343e65069a8c0cfa219e6f7610000bd87995c227f47188eaba58bb4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page