OWI-metadatabase Soil Extension
Soil extension package for the OWI-metadatabase namespace SDK.
This package extends owi-metadatabase with soil-focused endpoints, data processing,
and plotting helpers while keeping the same owi.metadatabase.* import namespace.
Features
- Soil API Client: Access soil profiles, in-situ tests, geotechnical samples, and lab tests
- Processing Utilities: Convert API payloads to tabular/analysis-ready structures
- Groundhog Integration: Convert CPT/profile data into Groundhog-compatible objects
- Visualization Helpers: Build interactive Plotly maps and profile/fence plots
- Namespace Extension: Works seamlessly with the core
owi-metadatabasepackage
Installation
Install as extension package (owi-metadatabase-soil)
From PyPI:
pip install owi-metadatabase-soil
Using uv:
uv pip install owi-metadatabase-soil
Install from core package extra (owi-metadatabase[soil])
If you prefer installing from the base package extras:
pip install "owi-metadatabase[soil]"
Using uv:
uv pip install "owi-metadatabase[soil]"
Quick Start
from owi.metadatabase.soil import SoilAPI
soil_api = SoilAPI(token="your-api-token")
print(soil_api.ping())
Examples
1) Retrieve test locations
from owi.metadatabase.soil import SoilAPI
soil_api = SoilAPI(token="your-api-token")
result = soil_api.get_testlocations(projectsite="Nobelwind")
if result["exists"]:
print(result["data"].head())
2) Find the closest in-situ test
closest = soil_api.get_closest_insitutest(latitude=51.707765, longitude=2.798876, radius=1.0)
print(closest["title"], f"at {closest['offset [m]']:.1f} m")
3) Retrieve CPT detail and optional Groundhog CPT object
cpt = soil_api.get_cpttest_detail(
insitutest="BH-CPT-01",
projectsite="Nobelwind",
location="NW-A01",
cpt=True,
)
print(cpt["exists"])
print(cpt["rawdata"].columns)
4) Retrieve a soil profile detail
profile = soil_api.get_soilprofile_detail(
projectsite="Nobelwind",
location="NW-A01",
soilprofile="BH-Profile-01",
)
print(profile["exists"])
5) Plot test locations
from owi.metadatabase.soil import SoilPlot
plotter = SoilPlot(soil_api)
figure = plotter.plot_testlocations(return_fig=True, projectsite="Nobelwind")
figure.show()
Development
uv sync --dev
uv run invoke test.run
uv run invoke qa.all
uv run invoke docs.build
Built with ❤️ and 🧠 by OWI-Lab
Metadata
Release files for owi-metadatabase-soil 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| owi_metadatabase_soil-0.1.1.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| owi_metadatabase_soil-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / owi_metadatabase_soil-0.1.1.tar.gz
| Download URL | owi_metadatabase_soil-0.1.1.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2100ed3de924903d69440146944ae88fd71deb4bb11454945bf63092b184a57d
|
|
BLAKE2b-256 checksum How to use checksums |
94a8f2509cc7ac176e320db8737d73ef40959945a5ad56e8af8cc21eb132f57f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 18, 2026.
Transparency logRelease files / owi_metadatabase_soil-0.1.1-py3-none-any.whl
| Download URL | owi_metadatabase_soil-0.1.1-py3-none-any.whl |
|---|---|
| Size | 47.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b8ed00a897eac68f6e66043e7e9567d3f35d814537393a87493323531cbf263
|
|
BLAKE2b-256 checksum How to use checksums |
cbb30388773042e888e26735a37d114504c9671397e095aec3d2fc2d688f41b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 18, 2026.
Transparency log