Skip to main content

A simple Django app to fetch and parse data from Dataporten.

Project description


Django-dataporten is a simple Django app to fetch data from dataporten and connect it to a user.

Quick start

1. Add "dataporten" to your INSTALLED_APPS setting like this::

.. code:: python


2. Run `python migrate` to create the dataporten proxy models.

3. In your file, add the variable DATAPORTEN_TOKEN_FUNCTION, which should be a dotted path to the function that will retrieve user tokens. The function should accept a :code:`User` and return a :code:`str`. Here is a python3.6 example that will work if you use `django-allauth`_:

.. code:: python

def allauth_token(user: User) -> str:
return SocialToken.objects.get(

.. _django-allauth:

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-dataporten-0.1.2.tar.gz (12.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page