skip to navigation
skip to content

Not Logged In

wq.db 0.5.0

Django design patterns and REST API for field data collection.


wq.db is a collection of Python modules for building robust, flexible schemas and REST APIs for use in creating field data collection apps and (more generally) mobile-first websites with progressive enhancement. wq.db is the backend component of wq and is geared primarily for use with, though it can be used separately. wq.db is built on the Django platform.

Build Status

Getting Started

pip install wq.db
# Or, if using together with and/or
pip install wq

See the documentation for more information.


wq.db has two primary components: a REST API generator ( and a collection of schema design patterns (wq.db.patterns) that facilitate flexible database layouts.

Extends the excellent Django REST Framework with a collection of views, serializers, and context processors useful for creating a progresively enhanced website that serves as its own mobile app and its own REST API. The core of the library ( includes an admin-style Router that connects REST urls to registered models, and provides a descriptive configuration object for consumption by's client-side router. also includes a CRS-aware GeoJSON serializer/renderer.


A collection of recommended design patterns (annotate, identify, locate, and relate) that provide long-term flexibility and sustainability for user-maintained data collection applications. These patterns are implemented as installable Django apps.

Batteries Included

Like Django itself, wq.db includes a contrib module that provides additional functionality not considered to be part of the "core" library.


Generates time series and box plot data for rendering by wq/chart.js. Powered by Django REST Pandas and vera.


Load data from external files into the database. Powered by, files, and vera.


Generic file manager. Supports using the same FileField for both images and files. Also includes a URL-driven thumbnail generator.


Reference implementation of the ERAV model, an extension to EAV with support for maintaining multiple versions of an entity.

File Type Py Version Uploaded on Size
wq.db-0.5.0.tar.gz (md5) Source 2014-02-11 49KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 93 downloads in the last week
  • 450 downloads in the last month