Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Quantinuum/phir

Repository files navigation

PHIR: PECOS High-level Intermediate Representation

PyPI version Python versions

phir models the PHIR specification as a Pydantic model. See our docs. Included is the tool phir-cli that provides validation and pretty printing on the command line.

Prerequisites

Python >=3.10

Installation

Just issue pip install phir to obtain the latest stable release.

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

Development

Clone the repository and run:

uv sync
uv run pre-commit install

See Makefile for other useful commands.

Testing

Issue make tests from the root directory.

About

PHIR (PECOS High-level Intermediate Representation) Spec and data model

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /