Skip to main content

Datapunt authorization

Project description

Interface to authorization logic in the backend of Amsterdam’s (Netherlands) open data distribution platform, [Datapunt](

In Datapunt authorization levels associated with users are stored in a central database. When a user accesses a resource she needs to provide a cryptographically secure token. That token contains the user’s authorization level. The resource in turn uses that information to decide what information the user can access.


$ pip install datapunt-authorization

In order to use this library you need to have access to a Postgress database.


import authorization
import authorization_levels  # pip install datapunt-authorization-levels

authzmap = authorization.AuthzMap(**psycopgconf)

if authzmap['myuser'] == authorization_levels.LEVEL_EMPLOYEE:
        ...  # do some eployee-e things


Activate your virtualenv, install the egg in editable mode, and start coding:

$ source env/bin/activate
$ pip install -e .


make test


The docs can be found at [](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for datapunt-authorization, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size datapunt-authorization-0.3.2.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page