UK Parliament API Client
Project description
A client for the UK Parliament API. Python 3 only, contributions welcome.
Currently supports:
- Commons and Lords divisions
- Early Day Motions
Installing
pip install ukparliament
Example
from ukparliament import Parliament
parliament = Parliament()
divisions = parliament.commons.recent_divisions(limit=4)
print(divisions)
[<Commons division: "European Union (Notification of Withdrawal) Bill: Programme" on 2017-02-01>,
<Commons division: "European Union (Notification of Withdrawal) Bill: Second Reading" on 2017-02-01>,
<Commons division: "European Union (Notification Etc.) Bill: Second Reading - Mr Robertson's Amendment" on 2017-02-01>,
<Commons division: "Opposition Motion: Prisons" on 2017-01-25>]
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
Close
Hashes for ukparliament-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c9e0e889489ffb6dc760e559e9ce5e160c76cbe52734d12eb80930016ffb4ad |
|
MD5 | af2bf0413cf4521a5cb7f95dfbf5f5bb |
|
BLAKE2b-256 | 6d1302bb6715a8f95c056d0eafc66de7c84b576c532c702dddf35e28cbaf8d86 |