--- id: censusgeocode version: "0.5.3" license: GNU General Public License v3 (GPLv3) license_treatment: copyleft maintenance: aging --- # censusgeocode — Thin Python wrapper for the US Census Geocoder License: copyleft · Maintenance: aging · Downloads: 219.7K/mo ## What it is and what it does Censusgeocode is a lightweight Python wrapper around the US Census Geocoder API that lets you convert addresses to geographic coordinates and retrieve Census geographic data (blocks, tracts, counties, states) for those locations. It exposes the Census API through simple functions like onelineaddress(), address(), and coordinates(), and returns results as CensusResult objects that preserve the Census's interpretation of your query. The package also includes a command-line tool for geocoding single addresses or batch-processing CSV files. The wrapper supports both "locations" mode (structured address data) and "geographies" mode (Census geographic boundaries and attributes). You can configure which Census benchmark and vintage to use via the CensusGeocode class if you need historical or alternative data. It depends only on requests and requests-toolbelt, making it lightweight to install and use. Use it for: - Geocode a list of addresses in a CSV file to get latitude/longitude pairs and Census geographic identifiers for spatial analysis. - Look up which Census block, tract, or county contains a given latitude/longitude coordinate. - Batch-process up to 10,000 addresses from the command line to generate a CSV with parsed addresses and coordinates. - Retrieve detailed Census geographic attributes (area, population codes, GEOID) for addresses in a Python script. - Convert single addresses to coordinates programmatically for mapping or location-based applications. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Wraps the US Census Geocoder API to convert addresses to coordinates and coordinates to Census geographic data, with both programmatic and command-line interfaces. Yes, if you need to geocode US addresses or map them to Census geographies. The package is stable, has low install friction, and directly wraps an official Census API. The GPLv3 license is a blocker for proprietary applications. Maintenance is aging (last release 187 days ago), so verify that Census API changes haven't broken the wrapper before deploying to production. ## Install pip install censusgeocode uv add censusgeocode poetry add censusgeocode ## Installing censusgeocode Before you install: Low install friction with only two runtime dependencies (requests and requests-toolbelt). Maintenance is aging—last release was 187 days ago—but the repository remains active and the package supports current Python versions through 3.14. License in practice: Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; proprietary applications cannot use this package without complying with copyleft obligations. Quickstart: pip install censusgeocode import censusgeocode as cg result = cg.onelineaddress('1600 Pennsylvania Avenue, Washington, DC') print(result.input, result) Requires network access to the US Census Geocoder API (http://geocoding.geo.census.gov/geocoder/); batch geocoding is limited to 10,000 rows per request. Verify before relying: - Whether the Census Geocoder API requires authentication or has rate limits beyond the documented 10,000-row batch limit. - Current availability and stability of Census Geocoder API benchmarks and vintages referenced in the package. ## Package facts - License: GNU General Public License v3 (GPLv3) (copyleft) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 219.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags census geocoding api wrapper, address to coordinates python, us census geocoder, batch geocoding addresses, latitude longitude from address, census geographic data lookup, reverse geocoding coordinates, geospatial, us-census, batch-processing [View on SkillFed](https://skillfed.io/packages/censusgeocode) · [View on PyPI](https://pypi.org/project/censusgeocode/)