Derives significant dates for UK elections
Project description
uk-election-timetables
This library encapsulates timetable legislation for elections run in the United Kingdom and its devolved administrations.
The election timetable varies based on:
- Type of Post - Parliamentary, Local, devolved Government, etc.
- Country - The United Kingdom has up to four different rules for the same type of election, one for each country.
- Calendar - each country has their own unique set of Bank Holidays.
Usage (publishing of candidate lists)
from datetime import date
from uk_election_timetables.elections.uk_parliament import UKParliamentElection
election = UKParliamentElection(date(2019, 2, 21))
print(election.sopn_publish_date) # date(2019, 1, 25)
Documentation
Hosted by readthedocs at https://uk-election-timetables.readthedocs.io/
Installation
pip install uk_election_timetables
Test
pytest
Supported Election Types
- Local
- United Kingdom Parliament
- Scottish Parliament
- Senedd Cymru
- Northern Ireland Assembly
- Mayoral
- Mayoral (London)
- Greater London Assembly
- Police and Crime commissioner
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
Close
Hashes for uk-election-timetables-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 665599257e87c74f780d6eab51c164fa65e98c80d3f1ccfdb06d048c2d319fbc |
|
MD5 | 42cc45e0d944555cef952a32275030b8 |
|
BLAKE2b-256 | aaf0794a9b242c0202ae8ddbe159109b39b547b7e9ae2425e01f71ca0bff2f0d |