Skip to main content

Python bindings for the Tweede Kamer OData API

Project description

tkapi

PyPI version
Python bindings for the Tweede Kamer Open Data Portaal OData API.

Requires Python 3.5+

You are welcome to open an issue if you have any problems, questions or suggestions.

Installation

pip install tkapi

Authentication

You need to whitelist your IP by registering at https://opendata.tweedekamer.nl.

Usage

A simple first example,

import tkapi

api = tkapi.Api()
personen = api.get_personen(max_items=100)
for persoon in personen:
    print(persoon.achternaam)

For more examples see the examples directory and the tests.

Entities

Implemented:

Algemeen Commissie Persoon
Activiteit Commissie Persoon
Zaak CommissieZetel PersoonGeschenk
Kamerstukdossier CommissieVastPersoon PersoonLoopbaan
Fractie CommissieVervangerPersoon PersoonNevenfunctie
FractieZetel PersoonNevenfunctieInkomsten
Stemming PersoonOnderwijs
Vergadering PersoonReis
Document PersoonFunctie
Agendapunt
Besluit
Verslag

TODO:

Algemeen Commissie Persoon
ActiviteitActor CommissieVastVacature PersoonAdres
ZaakActor CommissieVervangerVacature PersoonContactinformatie
FractieAanvullendGegeven
Zaal
Reservering
DocumentVersie

Development

Tests

Run all tests,

python -m unittest discover

Coverage report

Run all tests,

coverage run -m unittest discover

Create coverage report,

coverage html

Then visit htmlcov/index.html in your browser.

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

tkapi-0.9.3.tar.gz (16.8 kB view hashes)

Uploaded Source

Built Distribution

tkapi-0.9.3-py3-none-any.whl (25.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