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
File details
Details for the file helsinki-profile-gdpr-api-0.0.1.tar.gz
.
File metadata
- Download URL: helsinki-profile-gdpr-api-0.0.1.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcfce5b1fa080bb0965c0fada5cc7c324161bc1a6194a3b8560f42e621ee6eff |
|
MD5 | 3f7b6ffcb8a846e8af6ea13b9f6a4d06 |
|
BLAKE2b-256 | fd9d244932cc498bf8995825389c21b3ed32db3fb42aa304cfe750d4fcacbd74 |
File details
Details for the file helsinki_profile_gdpr_api-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: helsinki_profile_gdpr_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e8149a464c2b6e9b2e3b63149447bd6a1cf8d3fa0f3bc13d1536ad08e8a814 |
|
MD5 | 5f8987cfed1c55f52b9c21c84711253c |
|
BLAKE2b-256 | e92a77e6d4c9b10efbe3a161cdd3f8a5d00f58a24adda28a13c2c120b1e3549f |