• Stars
    star
    170
  • Rank 222,138 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build complex queries for Django
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.7 - 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)

More Repositories

1

pip-conflict-checker

A tool that checks installed packages against all package requirements to ensure that there are no dependency version conflicts.
Python
72
star
2

django-dynamic-db-router

Run queries on any of your project's databases using a decorator or context manager.
Python
62
star
3

django-entity

πŸ‘½ Entity relationship management for Django
Python
58
star
4

django-manager-utils

Model manager utils for Django
Python
57
star
5

fleming

Python functions for manipulating datetime objects with respect to their time zone
Python
50
star
6

kmatch

A language for filtering, matching, and validating Python dictionaries
Python
49
star
7

newrelic-api

πŸ“Š A Python interface to New Relic's API
Python
42
star
8

django-db-mutex

Acquire a mutex via the DB in Django
Python
25
star
9

django-tour

Navigate a user through a series of pages and ensures that each step is successfully completed
Python
23
star
10

django-entity-event

🎫 Newsfeed-style event tracking and subscription management for django-entity.
Python
22
star
11

django-regex-field

Store regexs in a Django model
Python
18
star
12

django-smart-manager

Create and manage Django models with serializable templates
Python
16
star
13

django-activatable-model

Properties and signals for models that are activated/deactivated
Python
16
star
14

rabbitmq-admin

A python wrapper for the RabbitMQ Management HTTP API
Python
16
star
15

django-entity-subscription

Make subscription management easy and entity-based.
Python
15
star
16

django-user-guide

Show configurable HTML guides to users.
JavaScript
14
star
17

django-localized-recurrence

Store events that recur in users' local times.
Python
14
star
18

django-data-schema

Data Schemas for Django Models and Dictionaries
Python
13
star
19

django-dynamic-initial-data

Dynamic initial data for Django apps
Python
12
star
20

django-restraint

A dynamic Django object-level permission app
Python
11
star
21

django-entity-emailer

πŸ“« Send email to Entities.
Python
9
star
22

django-app-template

The template used for standalone opensource Django apps in Ambition
Python
9
star
23

django-issue

An app for tracking ongoing issues within your web application. In a nutshell: a ticketing system for use by software components!
Python
9
star
24

ambition-python-template

A template for open-source python projects
Python
8
star
25

pagerduty-api

πŸ“Ÿ A Python wrapper to PagerDuty's API
Python
7
star
26

django-entity-history

History about Django Entities
Python
6
star
27

django-narrative

A Django app for creating a narrative of application events within a web application. This enables some neat application monitoring and quality assurances capabilities.
Python
5
star
28

django-deletion-side-effects

Provides the ability to retrieve side effects of deleting a Django object
Python
5
star
29

ambition-utils

Python
4
star
30

react-native-ui

A collection of UI components for React Native
JavaScript
3
star
31

ambition-docs-guide

A guide for getting spun up on documenting python and reStrcturedText
Python
3
star
32

python-logentries-api

Logentries API hack
Python
3
star
33

django-datum

Python
3
star
34

django-entity-event-slack

A pushable Slack medium for the Django Entity Event system
Python
3
star
35

gclient-service-account-auth

Easily create an authorized service-object for interacting with google's client APIs using google service-account credentials.
Python
2
star
36

django-kmatch

Django utilities for the kmatch library
Python
2
star
37

ambition-py-tests-guide

A guide for writing tests for Ambition python projects
Python
1
star
38

ambition-slack

Slack integration for Ambition
Python
1
star
39

react-demo

A profile demo built with React + Flux.
JavaScript
1
star
40

clickjacket

A simple JavaScript library for click-jacking protection.
JavaScript
1
star