Petrophys turns logs, core, and specialist data into traceable petrophysical results — every executed step recorded, every skip explained. Built for petrophysicists, and for the LLM agents that work beside them.
Incomplete log suites don’t fail — they produce a reduced interpretation with an explicit trace. Prerequisites are checked before each step, so the result explains what ran, what couldn’t, and what needs review.
Language models know the vocabulary of formation evaluation but cannot compute it. Petrophys gives them the engine: through its MCP server an agent loads a well, runs the same validated workflow as pp.interpret, reads why each step ran or was skipped, and answers with numbers it can trace. The wells stay on your machine.
pp.export_context packs an interpretation into compact JSON within a byte budget you set; dataset profiles reproduce the benchmark context packages for GeoLink, COSTA and the Danish wells.llms.txt maps the documentation for a model, and config_schema() describes every setting as data, so generated code calls the library correctly.
WellLogBench, a benchmark of LLM reasoning on well logs, builds its well contexts with Petrophys.
import petrophys as pp well = pp.read(pp.sample("30_6-5")) result = pp.interpret(well, rw=0.07, rw_meas_temp_f=230) result.print_trace() # what ran, what didn't, and why pp.plot(result, top=2800, bottom=3000).show() result.to_las("interpreted.las")