Skip to main content

Amsterdam Datapunt code and style for Django REST Framework.

Project description

Extenstions to Django REST Framework by Asterdam Datapunt. Amsterdam Datapunt provides access to municipal data through, at times public, APIs. This project drf_amsterdam provides some basic classes and instructions to set the behavior of Django REST Framework API to the standards of Amsterdam Datapunt.

Installlation instructions

Given that you have a Django project that generates a REST API using Django REST Framework:

` pip install git+https://github.com/Amsterdam/drf_amsterdam.git `

or by adding the following line to your requirements.txt file:

` git+https://github.com/Amsterdam/drf_amsterdam.git#egg=drf_amsterdam `

To use the API page styling provided by this package you must add it to the Django settings file in INSTALLED_APPS, ahead of ‘rest_framework’ so that the templates and static files included in drf_amsterdam override those included with Django REST Framework.

Running tests

Run the tests in a virtualenv and run the script runtests.py from project root.

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

drf_amsterdam-0.1.1.tar.gz (53.7 kB view details)

Uploaded Source

Built Distribution

drf_amsterdam-0.1.1-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

Details for the file drf_amsterdam-0.1.1.tar.gz.

File metadata

File hashes

Hashes for drf_amsterdam-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aad2f3d9c81578033c06acb632984aec5d166a77e96202a1b94480e49d305f75
MD5 49663bb74cd405663f410d42f0c75889
BLAKE2b-256 390245639205c92453ae380ee795154fdd15dc800e48982579dc0cee03c18019

See more details on using hashes here.

File details

Details for the file drf_amsterdam-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for drf_amsterdam-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c632e03cbaa9cb348716f9f8e90f378050dbb5125df959a400a53c9295213118
MD5 ff2b789f94e6eeb3854d353552af44ea
BLAKE2b-256 ea61158c6e40c828962f17b9237d2976862e22cf2731329af443b47961e986d7

See more details on using hashes here.

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