Amsterdam Datapunt code and style for Django REST Framework.
Project description
Extenstions to Django REST Framework by Amsterdam 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 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.
requirements: spatialite, sqllite extension
or user the docker-compose [TODO]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drf_amsterdam-0.2.2.linux-x86_64.tar.gz
.
File metadata
- Download URL: drf_amsterdam-0.2.2.linux-x86_64.tar.gz
- Upload date:
- Size: 61.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0b3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b427689a71aa3d190d6c252b0dc7d00cbdfd6fad28df9fdd3c97965b1c19c6c |
|
MD5 | f0648972d190873f7dd0fac075a223ed |
|
BLAKE2b-256 | 294b53a83622babae94d5f9dd85ad8dfa3a02db1ad69c21681aae6103fbea400 |
File details
Details for the file drf_amsterdam-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: drf_amsterdam-0.2.2-py3-none-any.whl
- Upload date:
- Size: 53.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0b3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1d8dcb7862750191cc21b5e013b803e6b965e0129dc5b2b7dabb02836ecdb59 |
|
MD5 | 56b3c5bf2995405973f6f52928f6a98f |
|
BLAKE2b-256 | 11d14bd85222a7e77416916227eb3053c466deba642a8a27fa19730aa9cc62b7 |