Skip to main content

Django design patterns and REST API for field data collection.

Project description

wq.db

wq.db

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

Getting Started

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

See the documentation for more information. See https://github.com/wq/wq.db to fork wq.db or report any issues.

Features

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

wq.db.rest

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 (app.py) includes an admin-style autodiscover() that automatically routes REST urls to installed models, and provides a descriptive JSON configuration object for consumption by wq.app’s client-side router. wq.db.rest also includes a CRS-aware GeoJSON serializer and renderer.

wq.db.patterns

A collection of recommended design patterns (annotate, identify, locate, and relate) that provide long-term flexibility and sustainability for data collection systems. 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.

files

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

vera

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

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

wq.db-0.3.1.tar.gz (43.7 kB view details)

Uploaded Source

File details

Details for the file wq.db-0.3.1.tar.gz.

File metadata

  • Download URL: wq.db-0.3.1.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wq.db-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6f148cda0ff960ce3a7fdff5871cfc5e7eb59de6a77ade742d857504042a4b1b
MD5 f2acc3ad2573874c9064a5dd140265d6
BLAKE2b-256 1bfe9d8c87f6c872f6c7369c0773556099386552875a044c65e5b0144c3d4c9b

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