election

class uk_election_timetables.election.Election(poll_date: date, country: Country)

Bases: object

BANK_HOLIDAY_CALENDAR = <uk_election_timetables.calendars.UnitedKingdomBankHolidays object>
property postal_vote_application_deadline: date

Calculates the postal vote application deadline for this Election

This is set out in The Representation of the People (England and Wales) Regulations 2001.

In Northern Ireland, this is set out in The Representation of the People (Northern Ireland) Regulations 2008 <https://www.legislation.gov.uk/uksi/2008/1741/regulation/61/made>

Returns:

a datetime representing the postal vote application deadline

property registration_deadline: date

Calculates the voter registration deadline for this Election

This explained in a background note from the Electoral Commission

Returns:

a datetime representing the voter registration deadline

abstract property sopn_publish_date: date
property timetable: List[Dict]

An aggregate of all known dates for the specific election type.

Returns:

a list representing the entire timetable for this particular election.

property vac_application_deadline: date

Calculates the Voter Authority Certificate (VAC) application deadline for this Election

This is set out by the Electoral Commission here: https://www.electoralcommission.org.uk/cy/node/25624

Returns:

datetime.date representing the VAC application deadline