Verifying provided files comply with HSDS specification.
Project description
HSDS Validator
Validate files against the Human Services Data Specification (HSDS) and return a detailed report if validation fails.
The validator can be accessed via the Command Line Interface (CLI) or deployed as an API.
Important: Every file in the input directory must be of a single object type specified in the name of the directory.
Installation
pip install hsds-validator
With API support:
pip install hsds-validator[api]
Usage
CLI
Run hsds-validate --help to see options and instructions.
hsds-validate <path/to/input-directory> <path/to/schema-directory> [-o]
Parameters
<input_directory>: Path to directory containing JSON files to validate. Directory name must match the object type (required)<schema_directory>: Path to directory containing JSON schema files (required)-o, --save: Optional flag to save validation results tovalidation_results.jsonin the input directory
Examples
# Validate organization files
hsds-validate ./organization ./schemas
# Validate and save results
hsds-validate ./organization ./schemas --save
API Server
hsds-api
API available at http://localhost:8000. Visit http://localhost:8000/docs for interactive documentation.
Note: The API accepts two ZIP files: the data to validate and the schemas.
Requirements
- Python >= 3.13
License
MIT
Contact
Stevens Blueprint - blueprint@stevens.edu
About HSDS
Learn more about the Human Services Data Specification at docs.openreferral.org.
Project details
Release history Release notifications | RSS feed
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 hsds_validator-0.1.2.tar.gz.
File metadata
- Download URL: hsds_validator-0.1.2.tar.gz
- Upload date:
- Size: 50.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce6e7060818b5e06b15f0e491dfacb764e5bf9fefc6cf2f582f296c837cec63c
|
|
| MD5 |
407ae5fd0092cff0c0e2e690d6ab1bfb
|
|
| BLAKE2b-256 |
65f22fbdf6db5e04edf19666e274f781372489de2d7228dc60afcfe39dde4b70
|
Provenance
The following attestation bundles were made for hsds_validator-0.1.2.tar.gz:
Publisher:
publish_python_package.yml on stevensblueprint/hsds-validator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hsds_validator-0.1.2.tar.gz -
Subject digest:
ce6e7060818b5e06b15f0e491dfacb764e5bf9fefc6cf2f582f296c837cec63c - Sigstore transparency entry: 712634640
- Sigstore integration time:
-
Permalink:
stevensblueprint/hsds-validator@5d7f160e645450e5d19ed7ff4e0ed27049e59e02 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/stevensblueprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_python_package.yml@5d7f160e645450e5d19ed7ff4e0ed27049e59e02 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hsds_validator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hsds_validator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0447be62bef5720f6a5a9628e8620d7ecbf14e3fe0b782cab869d943b8cef46
|
|
| MD5 |
10ed635fb61a56e58d538a1d62b2177c
|
|
| BLAKE2b-256 |
e31c5abe2744b80d8323f702d80b3be4e15100eb9d268afe63b455114ae3ca96
|
Provenance
The following attestation bundles were made for hsds_validator-0.1.2-py3-none-any.whl:
Publisher:
publish_python_package.yml on stevensblueprint/hsds-validator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hsds_validator-0.1.2-py3-none-any.whl -
Subject digest:
d0447be62bef5720f6a5a9628e8620d7ecbf14e3fe0b782cab869d943b8cef46 - Sigstore transparency entry: 712634644
- Sigstore integration time:
-
Permalink:
stevensblueprint/hsds-validator@5d7f160e645450e5d19ed7ff4e0ed27049e59e02 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/stevensblueprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_python_package.yml@5d7f160e645450e5d19ed7ff4e0ed27049e59e02 -
Trigger Event:
release
-
Statement type: