Skip to main content

Extract geotechnical data from PDF reports and output DIGGS XML

Project description

Geotech Report Extraction

Extract geotechnical borehole data from PDF reports and output DIGGS 2.6 XML.

PyPI version License: MIT

Features

  • Parse borehole logs from geotechnical PDF reports (Langan, Schnabel, and generic formats)
  • Extract soil layers, SPT blow counts, groundwater levels, and lab test results
  • Optional vision-based extraction using Anthropic Claude or GPT-4o via Palantir Funhouse
  • Output DIGGS 2.6 XML for interoperability
  • Geospatial utilities for coordinate conversion and boring location mapping
  • Confidence scoring for extracted data quality

Installation

pip install geotech-report-extraction

Optional extras

# OCR support (Tesseract)
pip install geotech-report-extraction[ocr]

# Vision LLM extraction (Anthropic Claude)
pip install geotech-report-extraction[vision]

# Geospatial utilities (coordinate conversion, mapping)
pip install geotech-report-extraction[geo]

# Everything
pip install geotech-report-extraction[all]

Quick Start

from geotech_report_extraction import extract_report

# Basic text-based extraction
result = extract_report("report.pdf")

# Vision-based extraction with Anthropic Claude
result = extract_report("report.pdf", use_vision=True, vision_api_key="sk-...")

# Vision-based extraction with Palantir Funhouse
from geotech_report_extraction import FunhouseBackend
result = extract_report("report.pdf", llm_backend=FunhouseBackend(model="gpt-4.1"))

CLI

geotech-extract report.pdf -o output.xml

License

MIT

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

geotech_report_extraction-0.1.0.tar.gz (97.4 kB view details)

Uploaded Source

Built Distribution

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

geotech_report_extraction-0.1.0-py3-none-any.whl (85.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for geotech_report_extraction-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f269809bf951672a704b5652972668f2a316a5f09abfc249738d8609bf63e4b9
MD5 7321436aae90d1d9793a354ea53ea8d0
BLAKE2b-256 3d55774d9a828fb99f717bedfc2377df78a64407b380ab41af5dae31cac06af2

See more details on using hashes here.

Provenance

The following attestation bundles were made for geotech_report_extraction-0.1.0.tar.gz:

Publisher: publish.yml on soconnell345-geotech/GeotechReportExtraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for geotech_report_extraction-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5224cabc83143cc8a9af4460920d850eb76a02860d2b6a3b8b2bc3dfcf0cacfb
MD5 dbe3a1c751d5542c6aab482f5520c478
BLAKE2b-256 36b948f5fcaad4214a876e7fc2482a0a0a24a54aea2fa2794a4556bfd17de9c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for geotech_report_extraction-0.1.0-py3-none-any.whl:

Publisher: publish.yml on soconnell345-geotech/GeotechReportExtraction

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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