Skip to main content

Automated NMTC eligibility checker — geocode addresses and check Low-Income Community status using CDFI Fund and Census data

Project description

nmtc-mapper 🗺️

Automated NMTC eligibility checker for addresses and census tracts.

Pass a DataFrame of addresses and get back a boolean column for NMTC eligibility, distress level, poverty rate, AMI ratio, and more — using official CDFI Fund and Census Bureau data. No manual lookups required.


Why nmtc-mapper?

The CDFI Fund provides a manual web tool (CIMS) for checking NMTC eligibility one address at a time. nmtc-mapper automates this — pass 10,000 addresses and get results in seconds, using the same official data source.


Installation

pip install nmtc-mapper

Quickstart

from nmtcmapper import NMTCMapper

mapper = NMTCMapper()

# Single address (geocodes automatically)
result = mapper.check_address("1234 S Michigan Ave, Chicago, IL 60605")
result.summary()
print(result.nmtc_eligible)    # True
print(result.distress_level)   # "severe"
print(result.poverty_rate)     # 0.38

# Known census tract (no geocoding needed)
result = mapper.check_tract("17031840100")
print(result.nmtc_eligible)    # True

# Batch — enrich a DataFrame of addresses
import pandas as pd
df = pd.read_csv("projects.csv")   # must have 'address' column
df = mapper.enrich(df, address_col="address")
print(df["nmtc_eligible"].value_counts())
print(df["distress_level"].value_counts())

# If you already have census tract IDs
df = mapper.enrich(df, tract_col="tract_id")

# Summary stats
mapper.eligible_count(df)

Eligibility Rules (2016-2020 ACS — mandatory since Sept 1, 2024)

A census tract qualifies as a Low-Income Community (LIC) if it meets ANY of:

  • Poverty rate >= 20%
  • Median Family Income <= 80% of metro/state AMI
  • Median Family Income <= 85% of state AMI (high migration rural counties)

Distress levels:

  • deep — Poverty >= 40% OR AMI <= 50% OR unemployment >= 2x national rate
  • severe — Poverty >= 30% OR AMI <= 60% OR unemployment >= 1.5x national rate
  • lic — NMTC eligible (meets LIC criteria)
  • ineligible — Does not qualify

Data Sources


Output Columns

After running .enrich(), your DataFrame will have:

  • nmtc_eligible (bool)
  • distress_level (str: deep / severe / lic / ineligible)
  • poverty_rate (float)
  • ami_ratio (float)
  • unemployment_rate (float)
  • is_non_metro (bool)
  • severe_distress (bool)
  • deep_distress (bool)

Running Tests

PYTHONPATH=. pytest tests/ -v

24 tests across all modules.


Who This Is For

  • CDEs screening project locations for NMTC eligibility
  • CDFI analysts qualifying borrower locations at scale
  • Researchers analyzing geographic distribution of LIC tracts
  • Anyone replacing manual CIMS lookups with automated Python

License

MIT 2026 Jaypatel1511

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nmtc_mapper-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nmtc_mapper-0.1.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file nmtc_mapper-0.1.0.tar.gz.

File metadata

  • Download URL: nmtc_mapper-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for nmtc_mapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c0c9e9b86caf402c729f94f491b9b891a2219d0c0c597257a621fdb0f057aeb
MD5 b6e2f0a02b29fb6ba994a1623b99219b
BLAKE2b-256 84a9f50e6ecf215035295975d5a27567ded2d1fd5b8aa905940a52259105b4da

See more details on using hashes here.

File details

Details for the file nmtc_mapper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nmtc_mapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for nmtc_mapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c15dbad67756fa6421eceb375faa7872b6fd9b60465b594acadd72db7460727
MD5 de8df78de403b433458cfd69324e64a0
BLAKE2b-256 b3fcc469e8841d23baead47f61c0977b8eae52c0c9673098db25ce827b6aef8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page