pyDIGGS
A Python package for Data Interchange for Geotechnical and Geoenvironmental Specialists (DIGGS).
- Licensed under the Apache License 2.0
- Documentation: https://xinp-hub.github.io/pydiggs
- GitHub: https://github.com/xinp-hub/pydiggs
- PyPI: https://pypi.org/project/pydiggs
Project Lead
* Xin Peng (<xin_peng@outlook.com>)
* Asitha Senanayake (<asitha.senanayake@utexas.edu>)
Features
- Validate DIGGS instance files against:
- DIGGS XSD Schema (2.6 by default; 2.5.a supported via
schema_path) - DIGGS Standard dictionaries / codeSpace semantics (offline bundle from diggsml.org/def)
- Schematron business rules (bundled DIGGS lxml-adapted rules by default)
- DIGGS XSD Schema (2.6 by default; 2.5.a supported via
- Flexible validation output:
- Write validation errors to log files
- Print validation errors directly to console
- Command-line interface (CLI) for easy integration
Web Application
Not a Python user? Looking for leveraging the power of pyDIGGS in a modern web application? Check out:
Quick Start
Install pydiggs:
pip install pydiggs
Basic usage with Python:
from pydiggs import validator
# Create a validator instance
validation = validator("path/to/your/diggs_file.xml")
# Schema validation (using default DIGGS Schema v2.6)
validation.schema_check()
# Dictionary validation (DIGGSml semantic checks; offline dictionaries)
validation.dictionary_check()
# Schematron validation (bundled DIGGS rules by default)
validation.schematron_check()
# Or supply a custom Schematron file
validation = validator("path/to/your/diggs_file.xml", schematron_path="path/to/schematron.sch")
validation.schematron_check()
Basic usage with CLI:
# Schema validation
pydiggs schema_check "path/to/your/diggs_file.xml"
# Dictionary validation
pydiggs dictionary_check "path/to/your/diggs_file.xml"
# Schematron validation (bundled rules)
pydiggs schematron_check "path/to/your/diggs_file.xml"
# Custom Schematron
pydiggs schematron_check "path/to/your/diggs_file.xml" --schematron_path "path/to/schematron.sch"
For more detailed information and advanced usage, please see the documentation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydiggs-0.2.0.tar.gz.
File metadata
- Download URL: pydiggs-0.2.0.tar.gz
- Upload date:
- Size: 730.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbb7041244ca563436199b5d5e4a77baec90313f527579953d51b2c8ff48fbc2
|
|
| MD5 |
17d7823195b6530ca6b72c0465616b69
|
|
| BLAKE2b-256 |
78640f0e4a018bec8ea9070686bad0f73ff168b27d868fb7aecf8a7679f87a71
|
File details
Details for the file pydiggs-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pydiggs-0.2.0-py3-none-any.whl
- Upload date:
- Size: 830.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
311f273fee7c83e3cb5a25c1fc8d01c26d5e82855a7c94bcb724e68b93771523
|
|
| MD5 |
6cf5b9eb75e03f9c787cd6eb1a080e99
|
|
| BLAKE2b-256 |
a015e09ea573e3a83514834d63dc83493437817f924e3f33ed11aa9cb5d46c46
|