Skip to contents

A tidy interface to the open data API of the Legislative Assembly of the State of Pernambuco, Brazil ('ALEPE', https://dadosabertos.alepe.pe.gov.br). Retrieve data on representatives, staff, positions, departments, remuneration, contracts, procurement processes, and legislative propositions as tibbles with clean names and parsed column types. Requests are cached locally and retried with exponential backoff; network failures are handled gracefully.

Package options

  • alepe.quiet: suppress informational messages. Defaults to TRUE in non-interactive sessions.

  • alepe.cache_dir: cache location. Defaults to tools::R_user_dir("alepe", "cache").

  • alepe.cache_max_age: cache expiry in seconds. Defaults to 6 hours.

  • alepe.max_tries: maximum request attempts. Defaults to 3, with exponential backoff between attempts.

  • alepe.timeout: request timeout in seconds. Defaults to 30.

Author

Maintainer: Andre Leite leite@castlab.org (ORCID)

Authors: