Parliament API
import groundwork.geo.territories.uk.parliament
Constituency
Represent a Westminster constituency.
Properties
All properties are valid as keyword-args to the constructor. They are required unless marked optional below.
current_representation
Optional[CurrentRepresentation]
end_date
Optional[datetime.datetime]
id
int
name
str
ons_code
str
start_date
datetime.datetime
CurrentRepresentation
Represent a current MP.
Properties
All properties are valid as keyword-args to the constructor. They are required unless marked optional below.
member
Member
representation
Representation
Member
Represent an MP.
Properties
All properties are valid as keyword-args to the constructor. They are required unless marked optional below.
gender
str
id
int
latest_house_membership
Representation
latest_party
Optional[Party]
name_address_as
Optional[str]
name_display_as
str
name_full_title
str
name_list_as
str
thumbnail_url
str
Party
Represent a political party
Properties
All properties are valid as keyword-args to the constructor. They are required unless marked optional below.
abbreviation
Optional[str]
background_colour
Optional[str]
foreground_colour
Optional[str]
government_type
Optional[int]
id
int
is_independent_party
bool
is_lords_main_party
bool
is_lords_spiritual_party
bool
name
str
Representation
Represent an MP's period of representation in parliament.
Properties
All properties are valid as keyword-args to the constructor. They are required unless marked optional below.
membership_from_id
Optional[int]
constituencies
RestDatasource[Constituency]
Resource returning all current UK constituencies, along with their current representation in parliament.
members
RestDatasource[Member]
Resource returning all current UK MPs, along with their current representation in parliament.
parties
RestDatasource[Party]
Resource returning all current UK political parties represented in Westminster