Skip to main content

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

  1. pip install helsinki-profile-gdpr-api

Usage

  1. Authentication needs to be configured for the required django-heluser

  2. Model which is to be used for GDPR operations should inherit SerializableMixin and include the required serialize_fields property.

  3. 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.
  4. 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


Download files

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

Source Distribution

helsinki-profile-gdpr-api-0.1.0.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

helsinki_profile_gdpr_api-0.1.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page