Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ambitioninc/django-query-builder
Build complex queries for Django
https://github.com/ambitioninc/django-query-builder
Last synced: 2 months ago
JSON representation
Build complex queries for Django
- Host: GitHub
- URL: https://github.com/ambitioninc/django-query-builder
- Owner: ambitioninc
- License: mit
- Created: 2013-01-24T21:47:06.000Z (almost 12 years ago)
- Default Branch: develop
- Last Pushed: 2023-08-30T12:57:13.000Z (over 1 year ago)
- Last Synced: 2024-09-23T00:03:06.445Z (3 months ago)
- Language: Python
- Homepage: django-query-builder.readthedocs.org
- Size: 609 KB
- Stars: 174
- Watchers: 24
- Forks: 33
- Open Issues: 14
-
Metadata Files:
- Readme: README.rst
- Contributing: docs/contributing.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - django-query-builder - Build complex queries for Django (Python)
README
.. image:: https://travis-ci.org/ambitioninc/django-query-builder.png
:target: https://travis-ci.org/ambitioninc/django-query-builder.. image:: https://coveralls.io/repos/ambitioninc/django-query-builder/badge.png?branch=develop
:target: https://coveralls.io/r/ambitioninc/django-query-builder?branch=develop.. image:: https://pypip.in/v/django-query-builder/badge.png
:target: https://crate.io/packages/django-query-builder/
:alt: Latest PyPI version.. image:: https://pypip.in/d/django-query-builder/badge.png
:target: https://crate.io/packages/django-query-builder/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)