legislei.houses.camara_deputados_helper module

class legislei.houses.camara_deputados_helper.CamaraDeputadosHelper[código fonte]

Bases: object

build_event(event_info)[código fonte]

Builds an Event object with given event data

Parâmetros:event_info (Dict) – Event dict
Retorno:Event object
Tipo de retorno:
 Evento
build_proposition(prop_info)[código fonte]

Builds a proposition object with given proposition info

Parâmetros:prop_info (Dict) – Proposition information
Retorno:Proposition object
Tipo de retorno:
 Proposicao
get_absent_events(events, attended_events, expected_events, commissions)[código fonte]

Gets all events that assemblyman was absent

Parâmetros:
  • events (List[Evento]) – All reports” events
  • attended_events – All events that assemblyman attended
  • expected_events – All events that assemblyman was expected
  • commissions (List[Orgao]) – List of assemblyman’s commissions
Type:

attended_events: List[Evento]

Type:

expected_events: List[Evento]

Retorno:

List of absent events

Tipo de retorno:
 

List[Evento]

get_all_events(final_date)[código fonte]

Gets all events that occurred or were scheduled to this report’s period

Parâmetros:final_date (Datetime) – Report period final date
Retorno:List of events
Tipo de retorno:
 List[Dict]
get_attended_events(events, assemblyman_id)[código fonte]

Gets all events that assemblyman attended in report’s period

Parâmetros:
  • events (List[Evento]) – List of all events of report
  • assemblyman_id (String) – Assemblyman id
Retorno:

List of attended events

Tipo de retorno:
 

List[Evento]

get_brt(date)[código fonte]
get_commissions(assemblyman_id, final_date)[código fonte]

Gets all commissions assemblyman is member of in the report period

Parâmetros:
  • assemblyman_id (String) – Assemblyman id
  • final_date (Datetime) – Report period final date
Retorno:

List of commissions

Tipo de retorno:
 

List[Orgao]

get_event_program(event_id)[código fonte]

Gets a event’s program, listing all propositions that were discussed

Parâmetros:event_id (String) – Event id
Retorno:List of propositions discussed
Tipo de retorno:
 List[Dict]
get_expected_events(assemblyman_id, final_date)[código fonte]

Get all events assemblyman was expected to attend

Parâmetros:
  • assemblyman_id (String) – Assemblyman id
  • final_date (Datetime) – Repor period final date
Retorno:

List of expected events

Tipo de retorno:
 

List[Dict]

get_propositions(assemblyman, final_date)[código fonte]

Gets all assemblyman’s proposed propositions on report’s timeframe

Parâmetros:
  • assemblyman (Parlamentar) – Assemblyman object
  • final_date (Datetime) – Report interval final date
Retorno:

List of propositions

Tipo de retorno:
 

List[Proposicao]

get_votes(assemblyman_id, proposition, event_dates)[código fonte]

Gets assemblyman votes on given proposition (and its amendments) of an specific event

Parâmetros:
  • assemblyman_id (String) – Assemblyman id
  • proposition (Dict) – Proposition dict
  • event_dates (Dict) – Start and end date of event
Retorno:

Assemblyman votes on the proposition

Tipo de retorno:
 

String