A data model and validation tool for PHIR (PECOS High-level Intermediate Representation).
Project description
PHIR: PECOS High-level Intermediate Representation
See PHIR specification for more.
Installation
Clone the repository and run:
python -m venv .venv
source .venv/bin/activate
pip install -U pip setuptools
pip install -r requirements.txt
pre-commit install
Then install the project using:
pip install -e .
See Makefile
for other useful commands.
phir CLI
The package includes a CLI for directly validating PHIR JSON files using the command line.
❯ phir-cli -h
usage: phir-cli [-h] [-s] [-v] [jsonfile]
Validates and pretty prints valid PHIR
positional arguments:
jsonfile json file to validate against PHIR spec
options:
-h, --help show this help message and exit
-s, --schema dump JSON schema of the PHIR model and exit
-v, --version show program's version number and exit
Testing
Just issue pytest
from the root directory.
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
phir-0.1.3.tar.gz
(19.7 kB
view hashes)
Built Distribution
phir-0.1.3-py3-none-any.whl
(10.1 kB
view hashes)