Events¶
-
class
Neighbourhood.Event(api, data={})¶ A neighbourhood event (e.g. a beat meating or surgery). Uses the neighbourhood-events API call.
Parameters: - api (PoliceAPI) – The instance of
PoliceAPIto use. - data (dict) – The attributes that will be copied to this instance.
-
neighbourhood¶ Type: Neighbourhood The Neighbourhood Policing Team that organised this event.
-
title¶ Type: str The title of the event.
-
type¶ Type: str The type of the event.
-
description¶ Type: str A description of the event.
-
contact_details¶ Type: list A
listofdict, containing methods of contacting the event organisers.>>> event = neighbourhood.events[0] >>> pprint(event.contact_details) {u'twitter': u'http://www.twitter.com/CCLeicsPolice'}
-
start_date¶ Type: list A
listofdict, containing methods of contacting the event organisers.>>> event = neighbourhood.events[0] >>> pprint(event.contact_details) {u'twitter': u'http://www.twitter.com/CCLeicsPolice'}
-
address¶ Type: str The location of the event.
-
start_date Type: datetime.datetime The date and time that the event starts.
>>> event = neighbourhood.events[0] >>> event.start_date datetime.datetime(2014, 7, 14, 9, 30)
- api (PoliceAPI) – The instance of