Django app for implementing Helsinki profile GDPR API
Project description
Helsinki profile GDPR API
Django app for implementing Helsinki profile GDPR API.
This library will allow a service using Helsinki profile to implement the GDPR functionality required by open-city-profile backend.
Installation
pip install helsinki-profile-gdpr-api
Usage
-
Authentication needs to be configured for the required
django-heluser
-
Model which is to be used for GDPR operations should inherit
SerializableMixin
and include the requiredserialize_fields
property. -
Define the following settings in your Django configuration.
Setting Example Description GDPR_API_MODEL "youths.YouthProfile" GDPR profile model in the form app_label.model_name
. model_name is case-insensitive.GDPR_API_QUERY_SCOPE "jassariapi.gdprquery" API scope required for the query operation. GDPR_API_DELETE_SCOPE "jassariapi.gdprdelete" API scope required for the delete operation. -
Add the GDPR API urls into your url config:
urlpatterns = [ ... path("gdpr-api/", include("helsinki_gdpr.urls")), ]
Code format
This project uses
black
,
flake8
and
isort
for code formatting and quality checking. Project follows the basic black config, without any modifications.
Basic black
commands:
- To let
black
do its magic:black .
- To see which files
black
would change:black --check .
pre-commit
can be used to install and run all the formatting tools as git hooks
automatically before a commit.
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
Hashes for helsinki-profile-gdpr-api-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d414c28ed2bfc5ba5a0ee7cbeaadec084e86394ec9c6da557012f0333f24b007 |
|
MD5 | f6220b33e90a2c92d4a7bdaaa771e254 |
|
BLAKE2b-256 | 6e4aec75a4cd38a45b15eee7c4b9b0192e832717e42bf9d53c34135f8cc93624 |
Hashes for helsinki_profile_gdpr_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934a85420fe39174e60a11f2fbcf191c44c3365b838547295bfebbf29353bb93 |
|
MD5 | 6d6efb10fa168d8cc69e3dff9d1a70c7 |
|
BLAKE2b-256 | 7c326a42cf4bc379a8553b93c06af3f72889079646b5ff94bb489fab1828fdd2 |