Skip to main content

Build complex nested queries

Project description

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.8 - 3.9

  • Django 2.2 - 4.1

  • Postgres 9.3+

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)

Project details


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-3.2.1.tar.gz (49.9 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-3.2.1-py2.py3-none-any.whl (56.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for django_query_builder-3.2.1.tar.gz
Algorithm Hash digest
SHA256 8c960d4d5ceea1a02636bff59814500d4bc0dfc44c572374b4f78809b27329ed
MD5 9ba476ee35732c6503e3d033ce126820
BLAKE2b-256 5af87b916e422e5b83b88f76112c41f65401101a27cdc638967d58566c78c499

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_query_builder-3.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0acb15888c7730115420a1a7415681075e844eb737c831dd78044b234d3a0dec
MD5 68f1fe225c616634993930e49cd31f95
BLAKE2b-256 90fac393c6b1756de84a2c248dca45d3cd0b757040e1a6fc6622c07aeb441576

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 Pingdom Monitoring Sentry Error logging StatusPage Status page