Skip to main content

UK Parliament API Client

Project description

PyPI version

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

ukparliament-0.3-py3-none-any.whl (7.4 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