Skip to main content

Python bindings for the Tweede Kamer OData API

Project description

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

Requires Python 3.3+

WARNING: This is a work in progress. There will be major changes that break everything!


pip install tkapi


A simple first example,

import tkapi

api = tkapi.Api(user=USERNAME, password=PASSWORD)
personen = api.get_personen(max_items=100)
for persoon in personen:

Where USERNAME and PASSWORD are your Tweede Kamer OpenData username and password. You can get one by registering at .



Run all tests,

python -m unittest discover

Coverage report

Run all tests,

coverage -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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tkapi-0.2.0-py3-none-any.whl (16.1 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