Skip to main content

uk-election-timetables

PyPI Ruff

Installation

pip install 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.close_of_nominations) # date(2019, 1, 25)

Supported Election Types

  • Local
  • City of London Local
  • United Kingdom Parliament
  • Scottish Parliament
  • Senedd Cymru
  • Northern Ireland Assembly
  • Mayoral
  • Mayoral (London)
  • Greater London Assembly
  • Police and Crime commissioner
  • Referendum

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uk_election_timetables-5.0.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uk_election_timetables-5.0.2-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file uk_election_timetables-5.0.2.tar.gz.

File metadata

  • Download URL: uk_election_timetables-5.0.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for uk_election_timetables-5.0.2.tar.gz
Algorithm Hash digest
SHA256 4372ead8ca2fd8269e0061ed63d872ca3ba10f304412384118247b770184c832
MD5 961228f46613beed510eb6825d7b89aa
BLAKE2b-256 b9f4a4c993833d0d1c20da16f6cb79cdad7096951e6bb44542d195556439d010

See more details on using hashes here.

Provenance

The following attestation bundles were made for uk_election_timetables-5.0.2.tar.gz:

Publisher: python-publish.yml on DemocracyClub/EveryElection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uk_election_timetables-5.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for uk_election_timetables-5.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27a2f866036d4177e0de09f72f88204e2255b074da1347a0db71a759c1307da9
MD5 a40998551edbe714b992c748d657726c
BLAKE2b-256 926d762605e7518a1b51e83ac930c9e614588169ddd7726f4bc59ea5d6e54124

See more details on using hashes here.

Provenance

The following attestation bundles were made for uk_election_timetables-5.0.2-py3-none-any.whl:

Publisher: python-publish.yml on DemocracyClub/EveryElection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

5.0.2 This release

2 files

5.0.1

2 files

5.0.0

2 files

4.4.0

2 files

4.3.0

2 files

4.2.3

2 files

4.2.2

2 files

4.2.1

2 files

4.2.0

2 files

4.1.0

2 files

4.0.0

2 files

3.0.0

1 file

2.4.1

1 file

2.4.0

1 file

2.3.0

1 file

2.2.4

1 file

2.2.3

1 file

2.2.2

1 file

2.2.1

1 file

2.2.0

1 file

2.1.1

1 file

2.1.0

1 file

2.0.2

1 file

2.0.1

1 file

2.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page