A Python wrapper for the US Census Bureau's API, providing simple access to ACS, Decennial Census, and other datasets. Current version 0.8.26, with yearly updates for new data years.
pip install censusVerified import paths — ran on the pinned version, not inferred.
Initialize with API key, then call endpoint methods (e.g., acs5.state) with variables and location.
Check Census API documentation for available variables per dataset and year.
Explicitly pass year parameter to ACS methods (e.g., .acs5.state(..., year=2023)).
Set your Census API key before creating instance: c = Census('your_key_here')Verify variable codes and geography parameters (e.g., state FIPS code) via Census API documentation.