Skip to main content

mhhs-validate

Validate data against the MHHS specifications.

Installation

pip install mhhs-validate

Usage

MHHS_VALIDATE_VERSION=1.7.3 mhhs-validate example.json

Other environment variables and their defaults:

# The schemas get cached locally
MHHS_VALIDATE_CACHE_DIR=~/.mhhs-validate
# Names of the domains to fetch
MHHS_VALIDATE_DOMAINS=DataCatalogue,DataTypes,RealCommonBlocks,Interfaces-EventCodes,ECS-Reports,ECS-CommonBlocks

Example output

Failed validating 'enum' in

    schema['properties']['CommonBlock']['properties']['M0']['properties']['GSPGroupID']:

    {'$anchor': 'DI-037-GSP-Group-ID',
     'description': 'Identifies the distinct grid supply point group '
                    '(physical region of the country) where the metering '
                    'point is located.',
     'enum': ['_A',
              '_B',
              '_C',
              '_D',
              '_E',
              '_F',
              '_G',
              '_H',
              '_J',
              '_K',
              '_L',
              '_M',
              '_N',
              '_P'],
     'example': '_K',
     'maxLength': 2,
     'minLength': 2,
     'type': 'string'}

On instance['CommonBlock']['M0']['GSPGroupID']:
    '_X'

Metadata

Release files for mhhs-validate 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mhhs-validate 0.0.2
File Size Uploaded Provenance
mhhs_validate-0.0.2.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mhhs-validate 0.0.2
File Interpreter ABI Platform
mhhs_validate-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / mhhs_validate-0.0.2.tar.gz

Download URL mhhs_validate-0.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fa2c76894be4e17501850543d8e1ad39705b8ed6b3b3020fd5ceee19c3496d2c
BLAKE2b-256 checksum
How to use checksums
dcec5ac17a2c7df4e54b08a33189b48ec86de07da7a6ceeb81670552990ed22a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.6

Release files / mhhs_validate-0.0.2-py3-none-any.whl

Download URL mhhs_validate-0.0.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
129f465ec97c257a6321797c3c25571cbbc649bfd3360bf59390cbf8d25ee6f0
BLAKE2b-256 checksum
How to use checksums
920e54026e98b16ae0b2d5ae03d9435acb8ca615d565d84ddb5d25d95e1a4427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.6

Security for mhhs-validate 0.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page