geotech-references
Digitized geotechnical reference library: callable Python functions for NAVFAC DM7 and FHWA GEC series equations, figures, and tables.
Installation
pip install geotech-references
Overview
This package provides 1,300 digitized functions from 34 reference packages, turning published figures, tables, and equations into callable Python code. 32 of the 34 packages also carry structured chapter text (see Text Retrieval below).
from geotech_references.dm7_1.chapter1 import table_1_4_uscs_classification
result = table_1_4_uscs_classification(
gravel_pct=25, sand_pct=55, fines_pct=20,
liquid_limit=35, plasticity_index=12
)
print(result) # {'symbol': 'SC', 'description': 'Clayey sand'}
Contents
Function counts are the public functions defined in each package's modules (counted with inspect). A dash means the package is text only: it has chapter text and a figure catalog but no callable functions.
Soil mechanics and foundations: DM 7 (393 functions)
| Module | Reference | Functions |
|---|---|---|
dm7_1 |
UFS 3-220-10 Soil Mechanics (DM 7.1), 16 January 2026 | 147 |
dm7_2 |
UFS 3-220-20 (26 March 2026; the text and pages of UFC 3-220-20, 16 January 2025) Foundations and Earth Structures (DM 7.2) | 246 |
FHWA geotechnical manuals and micropiles (142 functions)
| Module | Reference | Functions |
|---|---|---|
gec_4 |
Ground Anchors and Anchored Systems (FHWA-IF-99-015) | 6 |
gec_5 |
Geotechnical Site Characterization (FHWA NHI-16-072) | - |
gec_6 |
Shallow Foundations (FHWA-SA-02-054) | 13 |
gec_7 |
Soil Nail Walls (FHWA-NHI-14-007) | 15 |
gec_8 |
Design and Construction of Continuous Flight Auger Piles (FHWA-HIF-07-03) | 5 |
gec_9 |
Laterally Loaded Deep Foundations (FHWA-HIF-18-031) | 5 |
gec_10 |
Drilled Shafts: Construction Procedures and Design Methods (FHWA-NHI-18-024, 2018) | 11 |
gec_11 |
MSE Walls and Reinforced Soil Slopes (FHWA-NHI-10-024, -025) | 17 |
gec_12 |
Design and Construction of Driven Pile Foundations (FHWA-NHI-16-009) | 16 |
gec_13 |
Ground Modification Methods (FHWA-NHI-16-027 / -028, Vols I / II) | 16 |
gec_14 |
Assuring Quality in Geotechnical Reporting Documents (FHWA-HIF-17-016) | - |
micropile |
Micropile Design and Construction (FHWA-NHI-05-039) | 14 |
fhwa_soils_foundations |
Soils and Foundations Reference Manual, Volumes I and II (FHWA-NHI-06-088, -089) | - |
fhwa_pavements |
Geotechnical Aspects of Pavements (FHWA-NHI-05-037) | 24 |
Other geotechnical and seismic references (184 functions)
| Module | Reference | Functions |
|---|---|---|
california_trenching |
California Trenching and Shoring Manual (Caltrans) | 32 |
fema_p2082 |
2020 NEHRP Recommended Seismic Provisions (FEMA P-2082-1) | 12 |
eurocode_7_1 |
EN 1997-1:2004 Eurocode 7, Part 1: General Rules | 31 |
eurocode_7_2 |
EN 1997-2:2007 Eurocode 7, Part 2: Ground Investigation and Testing | 43 |
em_1905 |
EM 1110-1-1905 Geotechnical Design of Shallow Foundations on Soils (USACE, 31 July 2025) | 66 |
UFC pavement, soils and structural criteria (581 functions)
| Module | Reference | Functions |
|---|---|---|
ufc_backfill |
UFC 3-220-04FA Backfill for Subsurface Structures | 7 |
ufc_expansive |
UFC 3-220-07 Foundations in Expansive Soils | 14 |
ufc_pavement |
UFC 3-250-01 Pavement Design for Roads and Parking Areas | 53 |
ufc_stabilization |
UFC 3-250-11 Soil Stabilization and Modification for Pavements | 17 |
ufc_flexible_practice |
UFC 3-250-03 Standard Practice Manual for Flexible Pavements | 36 |
ufc_concrete_practice |
UFC 3-250-04 Standard Practice for Concrete Pavements | 18 |
aashto_1993 |
AASHTO Guide for Design of Pavement Structures, 1993 | 53 |
ufc_structural |
UFC 3-301-01 Structural Engineering | 66 |
ufc_collapse |
UFC 4-023-03 Design of Buildings to Resist Progressive Collapse | 77 |
gsa_collapse |
GSA Alternate Path Analysis and Design Guidelines for Progressive Collapse Resistance | 63 |
em_2104 |
EM 1110-2-2104 Strength Design for Reinforced Concrete Hydraulic Structures | 47 |
em_2107 |
EM 1110-2-2107 Design of Hydraulic Steel Structures | 49 |
wood_handbook |
Wood Handbook: Wood as an Engineering Material (FPL-GTR-282) | 81 |
Text Retrieval
Structured chapter text is available for 32 of the 34 packages (all but ufc_backfill and ufc_expansive). List them with geotech_references._retrieval_db.list_indexed_references():
from geotech_references._retrieval import search_sections
results = search_sections("gec_12", "pile setup")
for section in results:
print(section["title"], "-", section["body"][:100])
Tables and what a section can reach
Every numbered table of 31 references has a catalog row saying where its values are: typed into a stored section ("text"), returned by a function ("lookup"), or only on the printed page ("page", with the PDF page to read). Search and fetch rows with geotech_references._tables_db.table_search and table_get; resolve_table_pdf gives the page of a PDF held in docs/.
A fetched section (_retrieval_db.reference_get, _retrieval.retrieve_section) says which of the figures, tables and pointers it names the library holds: figures_held, tables_held and not_held.
Local reference packs
A deployment can add its own references in the library's structured format, kept outside this package and its public repository. Point GEOTECH_REFERENCES_PACKS at a pack folder (or a folder of packs) and text search, section fetches and figure lookup cover it beside the built-in references. Make and check a pack with python -m geotech_references.packs new|check|list|index; python -m geotech_references.packs schema prints the chapter-file schema. The format, the print-fidelity rules and where packs live on each host are in docs/REFERENCE_PACKS.md.
Agents
Pre-built Foundry-style agent wrappers are included in the agents/ directory: 19 per-reference wrappers (dm7_agent covers both DM 7 volumes) and a generic references_agent, which serves every package: its catalog is read from the installed package (list_reference_methods('') lists it). The other packages have no per-reference wrapper. These are standalone files for Palantir Foundry AIP Agent Studio — they are not part of the pip-installable geotech-references package. Copy them into your Foundry function repository as needed.
from agents.dm7_agent import dm7_agent, dm7_list_methods
# List available methods
print(dm7_list_methods("chapter1"))
# Call a specific function
result = dm7_agent("table_1_4_uscs_classification", '{"gravel_pct": 25, "sand_pct": 55, "fines_pct": 20, "liquid_limit": 35, "plasticity_index": 12}')
Maintaining
How content is added and checked against the print, how to run the tests, and the owner's rules: MAINTAINERS.md. How to release: RELEASING.md.
Source documents
docs/ holds the PDFs the modules were built from. Most are U.S. government publications: FHWA, USACE, UFC, FEMA, USDA, GSA and Caltrans.
Three are standards from other publishers. They are kept here because copies are openly available online:
docs/aashto1993.pdf: AASHTO Guide for Design of Pavement Structures, 1993 Edition. Where this copy came from was not recorded.docs/en.1997.2.2007-1.pdf: EN 1997-2:2007, Eurocode 7 Part 2, a Public.Resource.Org copy.docs/eurocode_7_-_geotechnical_designen.1997.1.2004.pdf: EN 1997-1:2004, Eurocode 7 Part 1, a Public.Resource.Org scan of BS EN 1997-1:2004.
Copyright in these three stays with their publishers. The MIT licence below covers this package's code, not the source documents.
License
MIT
Metadata
Release files for geotech-references 1.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geotech_references-1.8.0.tar.gz | 7.4 MB | With provenance | Details for geotech_references-1.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geotech_references-1.8.0-py3-none-any.whl | Python 3 | none | any | Details for geotech_references-1.8.0-py3-none-any.whl |
Total release size: 14.4 MB
Release files / geotech_references-1.8.0.tar.gz
| Download URL | geotech_references-1.8.0.tar.gz |
|---|---|
| Size | 7.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
358bc97fe048f67b9c0af5167fc8e566724b5923aba37718dd242f680ad455e1
|
|
BLAKE2b-256 checksum How to use checksums |
74178ac2a290791a870b8df75d4e2061d4c4fa7808469aba31099c6d7f714b05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / geotech_references-1.8.0-py3-none-any.whl
| Download URL | geotech_references-1.8.0-py3-none-any.whl |
|---|---|
| Size | 7.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55d7c1aa56bcdc0c41363f57ea2bcb9b881e6835e370b5345413f382d3676837
|
|
BLAKE2b-256 checksum How to use checksums |
ecaaedf1bac70f460b620f96c519f1aeaa2742cb6f705778a81b201af9363579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for geotech-references 1.8.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for geotech_references-1.8.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA 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.