Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
/ accountscli Public archive

Authorization logic for Datapunt

License

Notifications You must be signed in to change notification settings

Amsterdam/accountscli

Datapunt user admin


Install

$ pip install datapunt-user

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

Usage

import dpuser

users = dpuser.AuthzMap(**psycopgconf)

users.add('myuser@example.com', 'secretpassword')
users.set('myuser@example.com', 'newsecretpassword')
users.verify_password('myuser@example.com', 'secretpassword')
users.remove('myuser@example.com')

Contribute

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

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

Testing:

make test