Skip to main content

A Django-based model of the OpenGovernment context, compliant with the Popolo data specifications.

Project description

https://travis-ci.org/openpolis/django-popolo.svg?branch=master https://coveralls.io/repos/github/openpolis/django-popolo/badge.svg?branch=master

Welcome to the documentation for django-popolo!

django-popolo is a django-based implementation of the Popolo’s open government data specifications.

It is developed as a django application to be deployed directly within django projects.

It will allow web developers using it to manage and store data according to Popolo’s specifications.

The standard sql-oriented django ORM will be used.

From release 1.2.0, django-popolo includes classes that extend the model, although compatibility with the standard is kept.

Release 2.0.0 introduces a change in how Sources and Links are referred to, that breaks compatibility with the popit importer.

See the CHANGELOG.md file for more details.

Installation

To install django-popolo as a third party app within a django project, you need to add it to the django project’s requirements.txt. You can do this from GitHub in the usual way, or using the django-popolo package on PyPI.

Compatibility

Running the Tests

Set up the test environment with:

pip install -r tests_requirements.txt
python setup.py install

You can run the tests with:

python setup.py test

or:

python runtests.py

Notes on mysociety’s fork

mysociety/django-popolo is a fork of this project where integer IDs are used instead of slugs.

Our packages, since version 1.1 also uses numerical ids as primary keys for all entities. Slugs are available as non-primary fields, for the 4 main classes (Person, Organization, Post, Membership). Slugs are used through the Permalinkable behavior, that adds the slug field to the class, populating it according to rules defined in each class.

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-popolo-2.0.0.tar.gz (39.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_popolo-2.0.0-py2.py3-none-any.whl (60.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-popolo-2.0.0.tar.gz.

File metadata

  • Download URL: django-popolo-2.0.0.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-popolo-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f88c773777690c336f2fa2207f4a9d74dfed723630b3198037d70f89cda4d093
MD5 311fc617356e83dc40f22cd5aa39d4bb
BLAKE2b-256 54f2a6e6ddabcf5465ba20afcb0d9479344d2c5a5811cd1965f122501ce13735

See more details on using hashes here.

File details

Details for the file django_popolo-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_popolo-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 185612fc7f87dc094d804ec2e13a0788672effb97bc00be72323f5690c2cd501
MD5 cec8cf228381c409f5d7f6e34181b1f4
BLAKE2b-256 5895ddb2d5572ca7d0919c3e6c30c4c8516a16b2762b15477ac69e39518b2b9e

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