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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for drf_amsterdam-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1da6733ad0c76056454acf405e6c791ef84796398bfb5156ef7c02f5d0d5eff2
MD5 a51021f1bac102319ff38cf41f6108b9
BLAKE2b-256 59a1b4a74ca2c4f8cf9e0cf0e2f6e0cd474e194fd61f98daf79c66f28e656bf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for drf_amsterdam-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93c86faa1b2e5a6f98cbd498347d133df7c63c9b3bf03b51c3a8dd7f2cfd14fa
MD5 83dcca2cb2150eb081d99f2acc872c46
BLAKE2b-256 2c3dfad8cc725d20d7c4be454258ff16a44579122bde5ae88e230a93e1219083

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