Open Source

Brasil CLI

Brazilian public microdata, ready for the command line

An open source Python CLI that turns PNADC/IBGE, Census 2022, TSE and BCB data into CSVs, SQLite and dashboards — with weighted estimates and bootstrap confidence intervals. Built for analysts, journalists, researchers and AI agents.

pip install brasil-cli

What it covers

From IBGE's fixed-width files to data you can use.

Official data, no pain

Quarterly and annual PNADC, Census 2022, TSE electoral rolls and BCB series — synced and processed with a single command.

Real statistical rigor

Sampling weights applied properly: 95% confidence intervals via bootstrap over 200 IBGE replicate weights, with an audit seal on every run.

Built for AI agents

Output in CSV, SQLite and JSON. Read-only queries by default — safe for pipelines and LLM agents.

Quickstart

Five commands. One dashboard.

Syncs official data, runs the pipeline and opens a terminal dashboard with weighted estimates and confidence intervals.

pip install brasil-cli

brasil ibge-sync
brasil pipeline-run --raw latest
brasil dashboard

Disclaimer

Brasil CLI is not an official tool of IBGE, TSE or Brazil's Central Bank. It's an open source project, MIT-licensed and maintained by Arvor, that processes and organizes public open data published by those agencies.

Brazil already took the photo. Time to read it.

MIT license. Open source, auditable data, no sign-up required.