Skip to main content

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

Project description

pyDIGGS

PyPI version Python Versions Downloads Downloads/Month Build Status Documentation Status Updates

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

Features

  • Validate DIGGS instance files against:
    • DIGGS XSD Schema (version 2.6 by default)
    • Standard XML Dictionary (v0.1/properties.xml by default)
    • Schematron rules for business logic validation
  • Flexible validation output:
    • Write validation errors to log files
    • Print validation errors directly to console
  • Command-line interface (CLI) for easy integration

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 (using default DIGGS Dictionary)
validation.dictionary_check()

# Schematron validation (requires 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
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.

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

pydiggs-0.1.5.tar.gz (659.9 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.1.5-py3-none-any.whl (745.0 kB view details)

Uploaded Python 3

File details

Details for the file pydiggs-0.1.5.tar.gz.

File metadata

  • Download URL: pydiggs-0.1.5.tar.gz
  • Upload date:
  • Size: 659.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.16 Linux/6.8.0-1020-azure

File hashes

Hashes for pydiggs-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2be541beb499843b2ebe334f3f06a272371ebf7439f9bbfeed959209340f5fcb
MD5 f65df830275a1d57d584560cfe27c4c9
BLAKE2b-256 c78dd3a5d4afd2e6bf674394b5fe4f026bf2d018bac923587707b72916ead9b2

See more details on using hashes here.

File details

Details for the file pydiggs-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pydiggs-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 745.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.16 Linux/6.8.0-1020-azure

File hashes

Hashes for pydiggs-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e9d84cb8780849b71f92b1abbebb823c9192524712107958b60a98ea604d0b32
MD5 3d3140f240c442193783b8eddc19132d
BLAKE2b-256 080e5a5cfb7b7e13080190b0414066b6fb0fe1aeb881f944989ec57f3be71a18

See more details on using hashes here.

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