Skip to main content

🏡 homestock

image

image

homestock is a Python package designed to simplify access to American Community Survey (ACS) data from the U.S. Census Bureau. It enables users to fetch detailed demographic, housing, and economic data, and seamlessly convert the results into pandas DataFrames or CSV files for further analysis.

Whether you're exploring patterns at the state level or diving deep into neighborhoods using census tracts and block groups, homestock provides a flexible, scriptable workflow for researchers, students, journalists, and developers.


📊 What is the ACS?

The American Community Survey (ACS) is an ongoing survey conducted by the U.S. Census Bureau that collects vital information on income, education, housing, employment, and more.

There are two primary types of ACS data products:

🔹 1-Year Estimates

  • Based on data collected over 12 months
  • Available for areas with populations of 65,000+
  • Best for analyzing current trends in large cities or regions
  • Less stable for small populations due to smaller sample size

🔸 5-Year Estimates

  • Based on data collected over 60 months (5 years)
  • Available for all geographic areas, down to block groups
  • Best for granular spatial analysis or long-term planning
  • More reliable for small population areas

🗺️ Supported Geographic Levels

Geographic Level Description Available In
Nation Entire United States 1-Year, 5-Year
State Individual U.S. states 1-Year, 5-Year
County Counties within states 1-Year, 5-Year
County Subdivision Minor civil divisions (e.g., townships) 5-Year only
Place Incorporated places (cities, towns) 1-Year, 5-Year
ZIP Code Tabulation Area (ZCTA) Approximated ZIP Code boundaries 5-Year only
Metropolitan/Micropolitan Area Census-defined metro or micro areas 1-Year, 5-Year
Census Tract Small subdivisions of counties (~4,000 residents) 5-Year only
Block Group Subdivisions of tracts (~600–3,000 residents) 5-Year only
Block The smallest geography (~40–100 people) 5-Year only

⚙️ What Can You Do with homestock?

  • 🧩 Pull specific ACS tables by table ID (e.g., B19013 for median household income)
  • 📁 Convert results to pandas DataFrames or export them as .csv
  • 🌐 Query different geographic levels, from national down to individual blocks
  • 🔍 Explore metadata dynamically using Census variable labels
  • 🗺️ Use results in mapping tools like folium, geopandas, or leafmap

📦 Install

pip install homestock

Metadata

Release files for homestock 1.6.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for homestock 1.6.8
File Size Uploaded Provenance Actions
homestock-1.6.8.tar.gz 42.6 kB Without provenance Details for homestock-1.6.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for homestock 1.6.8
File Interpreter ABI Platform Actions
homestock-1.6.8-py2.py3-none-any.whl Python 2, Python 3 none any Details for homestock-1.6.8-py2.py3-none-any.whl

Total release size: 73.6 kB

Release files / homestock-1.6.8.tar.gz

Download URL homestock-1.6.8.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5fbaec3c3f1608f5f66a94d09d18361e7466dfd0d4a466aa7a2aa4bc15f6da42
BLAKE2b-256 checksum
How to use checksums
6638d5d3c69d3136bc1362ab2466ea59b4fb486a34b2ca3c23433198da32edac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / homestock-1.6.8-py2.py3-none-any.whl

Download URL homestock-1.6.8-py2.py3-none-any.whl
Size 31.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1804bdac0b27e3e5a467ebf2498c99aefa2cd4a2ef09fed611b2a5bca6cbffa8
BLAKE2b-256 checksum
How to use checksums
8f921a6c048ed1d1c687d1e44467a299bec7240f62e554647f7a5823b7c2f9f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for homestock 1.6.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page