acs-cli-mi
A command-line tool for querying U.S. Census Bureau American Community Survey (ACS) 5-year estimates for Michigan counties. Returns clean CSV output ready for spreadsheets, data pipelines, or further analysis.
Install
# Run directly without installing
uvx acs-cli-mi --help
# Or install with pip/uv
pip install acs-cli-mi
Requires Python 3.14+.
Setup
Get a free Census API key at https://api.census.gov/data/key_signup.html, then save it:
acs-cli-mi login --api-key YOUR_KEY
The key is stored in ~/.config/acs-cli/config. Alternatively, set CENSUS_API_KEY in your environment or a .env file.
Usage
Query topics
# Population demographics for all Michigan counties
acs-cli-mi query population
# Filter to a specific county
acs-cli-mi query income --county Wayne
# Combine multiple topics
acs-cli-mi query population income education --county Washtenaw
# All topics at once
acs-cli-mi query all
Multi-year queries
Query across multiple ACS vintages to see trends over time. Adds a Year column to the output.
acs-cli-mi query population --years 2019,2020,2021,2022,2023,2024
acs-cli-mi query income --years 2019,2024 --county Wayne
Save to file
acs-cli-mi query population income --output data.csv
acs-cli-mi query all --years 2020,2024 --output trend.csv
Sort results
acs-cli-mi query population --sort "Total Population"
County profile
Get all topics for a single county in a vertical layout:
acs-cli-mi info Washtenaw
acs-cli-mi info "Grand Traverse" --year 2022
List available topics
acs-cli-mi topics
Raw Census variables
Bypass the topic system and request specific ACS variable codes:
acs-cli-mi query -v B01003_001E -v B19013_001E
Available Topics
| Topic | Description |
|---|---|
population |
Total population, male/female, age breakouts (by sex), under 18, nativity/citizenship, households, housing units |
income |
Median household/family income, per capita income, Gini index, earnings by sex, household income distribution (16 brackets), income sources (Social Security, SSI, public assistance, retirement) |
age |
Median age overall, male, female |
poverty |
Poverty universe and count below poverty level |
education |
Full educational attainment for pop 25+ (no schooling through doctorate, including partial levels) |
race |
Total, White, Black, AIAN, Asian |
health_insurance |
Insurance universe, with coverage, without coverage |
disability |
Disability universe, male with disability, female with disability |
insurance_income |
Insurance status by household income brackets |
Output Format
All output is CSV written to stdout (or a file with --output). Values are raw numbers without formatting so they can be consumed directly by pandas, Excel, database imports, or other tools. Suppressed Census values appear as empty fields.
Data Source
All data comes from the Census Bureau ACS 5-Year Estimates API. Available vintages: 2009-2024. Data covers all 83 Michigan counties (FIPS state code 26).
Project Structure
src/acs_cli/
├── cli.py # Typer CLI commands
├── topics.py # Variable definitions and topic registry
└── census_api/
├── __init__.py
└── client.py # API client, key management, CSV output
Metadata
Release files for acs_cli_mi 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| acs_cli_mi-0.1.3.tar.gz | 20.3 kB | Without provenance | Details for acs_cli_mi-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acs_cli_mi-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for acs_cli_mi-0.1.3-py3-none-any.whl |
Total release size: 33.4 kB
Release files / acs_cli_mi-0.1.3.tar.gz
| Download URL | acs_cli_mi-0.1.3.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fca29e92404c6289c674984af9848aa2c7c139eb7c2198bc9b6228d3bf0412a
|
|
BLAKE2b-256 checksum How to use checksums |
f83b7c137833e89f708a99c01674b84b6bfcb2c4f96e1d6c1adc3d3b308fa597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / acs_cli_mi-0.1.3-py3-none-any.whl
| Download URL | acs_cli_mi-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1e9ca804ca47e2999ad3921598383409f9379d291e20376392d90b60283b4d0
|
|
BLAKE2b-256 checksum How to use checksums |
279b011d590782d0f1a9952a360c993d494107b5536db33b7df8f476bc30f6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for acs_cli_mi 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.