Retrieve published SSURGO map-unit components from USDA Soil Data Access. This tool supports background research for the Out West Septic project, with Palo Pinto County as the worked example. It does not infer septic suitability or identify the soil at a specific point.
Python 3.10+; standard library only. A live lookup requires internet access.
git clone https://github.com/TexasSepticEnthusiast/texas-soil-lookup-septic.git
cd texas-soil-lookup-septic
python scripts/outwestseptic_soil_lookup.py --mukey 390929
python scripts/outwestseptic_soil_lookup.py --mukey 390929 --json
python -m unittest discover -s tests -v
The example key was returned by USDA for survey TX363 (Palo Pinto County) on 2026-10-18. It is an example map unit, not a customer property or a recommendation. Use the key for your own area of interest.
mukey), not a soil series name or the survey-local map symbol (musym). USDA’s query guide explains these distinct identifiers and national map-unit labels.The report lists mapped components, their representative share and drainage class. These are survey attributes, not field measurements. Component shares are not normalized; missing percentages or drainage classes remain null in JSON and not reported in text. A map unit may have no component records.
The report deliberately supplies no percolation rate, bedrock depth, hydraulic loading rate, system selection or pass/fail decision. USDA explains that survey information supports planning and that engineering applications can require onsite investigation. The permitting authority and qualified site evaluator must determine what applies to the property.
The command returns 0 for a usable report, 1 for a failed lookup or missing/malformed data, and 2 for invalid input. A service outage never falls back to guessed values. --timeout accepts a finite value greater than zero and at most 60 seconds (default 20).
This replaces the old Cisco, --list and --try-usda COUNTY interface and removes SOIL_PRESETS, lookup_series and list_series. Those paths previously supplied uncited rates and a county-download request whose results were never parsed. Python callers now use OutWestSepticSoilLookup.fetch_usda(mukey) and receive OutWestSepticSoilMapUnit (also available as SoilMapUnit) or an explicit exception. Reports contain OutWestSepticSoilComponent records; failures use OutWestSepticSoilDataError (SoilDataError is retained as an alias). There is no hidden compatibility path that returns the old guesses.
Reviewed 2026-10-18:
This revision is an AI-assisted contribution requested for the Out West Septic project. It does not claim independent endorsement, licensed design review, field use or business credentials. See LICENSE and the reference notes.