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.0.1.tar.gz (11.9 kB view details)

Uploaded Source

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

Hashes for helsinki-profile-gdpr-api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fcfce5b1fa080bb0965c0fada5cc7c324161bc1a6194a3b8560f42e621ee6eff
MD5 3f7b6ffcb8a846e8af6ea13b9f6a4d06
BLAKE2b-256 fd9d244932cc498bf8995825389c21b3ed32db3fb42aa304cfe750d4fcacbd74

See more details on using hashes here.

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

Hashes for helsinki_profile_gdpr_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4e8149a464c2b6e9b2e3b63149447bd6a1cf8d3fa0f3bc13d1536ad08e8a814
MD5 5f8987cfed1c55f52b9c21c84711253c
BLAKE2b-256 e92a77e6d4c9b10efbe3a161cdd3f8a5d00f58a24adda28a13c2c120b1e3549f

See more details on using hashes here.

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