Skip to main content

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

Project description

django-popolo

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 reusable app 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.

Release 3.0.0 main focuses have been to keep up with latest Django versions and to "modernize" the code base, adopting latest Python features (like type hinting), and doing some serious housekeeping. Python 2 is no longer supported. This release also implements a lot of new models which are not part of the Popolo specification (mildly out of scope), but we needed them in some projects which make use this package. Those new models can be safely ignored, and they could also be removed in the future, as we are considering the option of entirely decoupling them from django-popolo.

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.

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-3.0.1.tar.gz (34.2 kB view details)

Uploaded Source

Built Distribution

django_popolo-3.0.1-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-popolo-3.0.1.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for django-popolo-3.0.1.tar.gz
Algorithm Hash digest
SHA256 d4ac7e61d82e60071c23267764811dab49132544ae4f8febbf41ce6938b96fb9
MD5 45067770554779ce8998e2beae1c461c
BLAKE2b-256 4eb5687bf5cb26c9fd20d17be63a660dc32eadeb57e3f948d1fe9641d9758508

See more details on using hashes here.

Provenance

File details

Details for the file django_popolo-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: django_popolo-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for django_popolo-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7ed43c6c6edd2ccfb177a1508899f6628e9573c1f807161622446f36e2e0d1d
MD5 a5948b6da1a9f8fc33bad9860c1186c6
BLAKE2b-256 9dc897163106c0c3ecae8ce3ff01fe4c0bcee0b76c9488686c289aefe4009cf6

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page