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 2.7

  • Python 3.3, 3.4

  • Django 1.7+

  • 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-1.1.0.tar.gz (42.6 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-1.1.0-py2.py3-none-any.whl (52.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-query-builder-1.1.0.tar.gz.

File metadata

File hashes

Hashes for django-query-builder-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c3d725fd8c5e41a130b6b77b0b16bd3cdbff26698f240f98335a30166ed50946
MD5 40f5323e070faa3ce8167f7eef096b02
BLAKE2b-256 6f73d62734fce239d3910165215d6e4052111ed088e135aa989d435fd1e37c3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_query_builder-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7d618e8455528967c587cae9da7724c6d3b4fb385e2c0d1e4656f2da9c5e7325
MD5 2712996df6dca225369c7d7caad07921
BLAKE2b-256 71f75a52ce63e27f6f97fbc9663f6543ebfe080d503becec21498f1a2e9a8fb6

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