Skip to main content

pyDIGGS

PyPI version Python Versions Downloads Downloads/Month Build Status Documentation Status Updates GitHub Issues License

A Python package for Data Interchange for Geotechnical and Geoenvironmental Specialists (DIGGS).

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)
  • 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

pydiggs-0.2.0.tar.gz (730.8 kB view details)

Uploaded Source

Built Distribution

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

pydiggs-0.2.0-py3-none-any.whl (830.9 kB view details)

Uploaded Python 3

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

Hashes for pydiggs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dbb7041244ca563436199b5d5e4a77baec90313f527579953d51b2c8ff48fbc2
MD5 17d7823195b6530ca6b72c0465616b69
BLAKE2b-256 78640f0e4a018bec8ea9070686bad0f73ff168b27d868fb7aecf8a7679f87a71

See more details on using hashes here.

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

Hashes for pydiggs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 311f273fee7c83e3cb5a25c1fc8d01c26d5e82855a7c94bcb724e68b93771523
MD5 6cf5b9eb75e03f9c787cd6eb1a080e99
BLAKE2b-256 a015e09ea573e3a83514834d63dc83493437817f924e3f33ed11aa9cb5d46c46

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

2 files

This release

0.2.0 This release

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page