spm-calculator
Calculate SPM (Supplemental Poverty Measure) thresholds for any US geography and year
Decision gist · record as of 2026-08-14
Yes, if you need to calculate official SPM thresholds programmatically. The package is actively maintained, has low install friction, carries no security vulnerabilities, and implements validated Census methodology. Set CENSUS_API_KEY if you need custom geographies beyond the bundled metro areas. Alpha status reflects ongoing development, not instability—recent commits and active maintenance indicate active use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires CENSUS_API_KEY environment variable for custom geographies (states, counties, districts, tracts); official metro areas work without it.
- Low install friction with a pure-Python wheel and six common dependencies (pandas, numpy, requests, census, us, openpyxl).
- Package is actively maintained with recent commits; status is alpha but in active development.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.
last release 2026-04-17 (119 days) · last repo commit 2026-08-07
0 known vulnerabilities (OSV.dev, 2026-08-14) · 104,242 downloads/mo, #12,759 on PyPI
Alternatives
Verify before relying
pip install spm-calculator
from spm_calculator import SPMCalculator
calc = SPMCalculator(year=2024)
threshold = calc.calculate_threshold(
num_adults=2,
num_children=2,
tenure="renter",
geography_type="metro_area",
geography_id="35620"
)- Whether ACS data fetching handles rate limits or caching for batch operations on many geographies
- Performance characteristics for tract-level calculations across large datasets
- Availability and completeness of ACS rent data for all supported geography types
What it is and what it does
spm-calculator computes official US Supplemental Poverty Measure thresholds for any supported geography and year. It combines three components: base thresholds (derived from Consumer Expenditure Survey data, varying by housing tenure), an equivalence scale that adjusts for family size and composition using the official Betson formula, and geographic adjustments that account for local housing costs using Census metro tables or ACS median rent data. The package bundles national thresholds and official metro data; for custom geographies like states, counties, and tracts, it fetches current median rents from the Census ACS API.
The package is designed for researchers, policy analysts, and developers who need to calculate poverty thresholds programmatically. It supports nation, state, county, metro area, congressional district, PUMA, and tract-level geographies. Base thresholds are validated against published BLS values, and the implementation follows official Census SPM methodology. Runtime dependencies include pandas and numpy for computation, requests for API calls, and the census and us libraries for geographic data handling.
Use it for
- Calculate poverty thresholds for a specific family composition in a metro area to assess eligibility for assistance programs
- Batch-compute SPM thresholds across multiple counties or states for policy analysis or research
- Build a web or desktop tool that lets users look up poverty thresholds for their geography and family size
- Validate or cross-check poverty calculations in survey data or administrative records against official Census methodology
- Generate historical poverty threshold comparisons across years for trend analysis
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to calculate official SPM thresholds programmatically.
The package is actively maintained, has low install friction, carries no security vulnerabilities, and implements validated Census methodology. Set CENSUS_API_KEY if you need custom geographies beyond the bundled metro areas. Alpha status reflects ongoing development, not instability—recent commits and active maintenance indicate active use.
Install
spm-calculator on PyPI
Before you install
Low install friction with a pure-Python wheel and six common dependencies (pandas, numpy, requests, census, us, openpyxl). Package is actively maintained with recent commits; status is alpha but in active development.
Requires CENSUS_API_KEY environment variable for custom geographies (states, counties, districts, tracts); official metro areas work without it.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.
Quickstart
pip install spm-calculator
from spm_calculator import SPMCalculator
calc = SPMCalculator(year=2024)
threshold = calc.calculate_threshold(
num_adults=2,
num_children=2,
tenure="renter",
geography_type="metro_area",
geography_id="35620"
)
Verify before relying
- Whether ACS data fetching handles rate limits or caching for batch operations on many geographies
- Performance characteristics for tract-level calculations across large datasets
- Availability and completeness of ACS rent data for all supported geography types
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagespandasnumpyrequestscensususopenpyxl |
| Maintenance | Actively maintained 119 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 104,242 / month, #12,759 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: Science/ResearchProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Scientific/Engineering |
Evidence: spm_calculator-0.3.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “supplemental poverty measure calculator”
- spm-calculatorCalculate Supplemental Poverty Measure (SPM) thresholds for US…
- business-durationCalculates business duration between two dates by excluding weekends,…
- cosmic-rayCosmic Ray is a mutation testing tool that modifies your Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also census · krippendorff · cpi · access · censusgeocode · uszipcode · us · geonamescache · coverage-threshold · policyengine-us