Python bindings for the Tweede Kamer OData API
Project description
tkapi
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
Bold entities are implemented.
Activiteit | Commissie | Persoon |
ActiviteitActor | CommissieOrganisatie | PersoonAdres |
Zaak | CommissieAanvullendGegeven | PersoonContactinformatie |
ZaakActor | CommissieZetel | PersoonGeschenk |
Kamerstukdossier | CommissieVastPersoon | PersoonLoopbaan |
Fractie | CommissieVastVacature | PersoonNevenfunctie |
CommissieVervangerVacature | PersoonNevenfunctieInkomsten | |
FractieAanvullendGegeven | CommissieVervangerPersoon | PersoonOnderwijs |
FractieZetel | PersoonReis | |
Stemming | PersoonFunctie | |
Zaal | ||
Reservering | ||
Vergadering | ||
Document | ||
DocumentVersie | ||
Bestand | ||
Agendapunt | ||
Besluit |
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
Release history Release notifications | RSS feed
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.8.0.dev2.tar.gz
(14.0 kB
view hashes)
Built Distribution
tkapi-0.8.0.dev2-py3-none-any.whl
(24.1 kB
view hashes)
Close
Hashes for tkapi-0.8.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 743fe5295e9a45b25ba202613514e25cd112338ecd53c81351c40021d1bc7d9b |
|
MD5 | fa03b1f155d1cb4c390cb4d45bcde22c |
|
BLAKE2b-256 | 6065f5e148f3d494230417752746d94c470f1173e79706762bc4858268a463f4 |