{"id":17632362,"url":"https://github.com/cqcl/phir","last_synced_at":"2025-07-19T06:05:12.438Z","repository":{"id":200885817,"uuid":"695042611","full_name":"CQCL/phir","owner":"CQCL","description":"PHIR (PECOS High-level Intermediate Representation) Spec and data model","archived":false,"fork":false,"pushed_at":"2025-07-07T19:30:12.000Z","size":2191,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-07-07T22:05:18.512Z","etag":null,"topics":["json-schema","python","quantinuum","quantum-computing"],"latest_commit_sha":null,"homepage":"https://cqcl.github.io/phir/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CQCL.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-22T08:22:44.000Z","updated_at":"2025-07-07T19:29:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ce220ed-a91d-4d56-a0bc-53555011fef7","html_url":"https://github.com/CQCL/phir","commit_stats":{"total_commits":204,"total_committers":8,"mean_commits":25.5,"dds":0.5098039215686274,"last_synced_commit":"170b7a58cde1c6b3999373d607ad2835cdff8e5d"},"previous_names":["cqcl/phir"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/CQCL/phir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fphir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fphir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fphir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fphir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CQCL","download_url":"https://codeload.github.com/CQCL/phir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fphir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265896003,"owners_count":23845415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json-schema","python","quantinuum","quantum-computing"],"created_at":"2024-10-23T01:06:46.682Z","updated_at":"2025-07-19T06:05:12.410Z","avatar_url":"https://github.com/CQCL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHIR: _[PECOS](https://github.com/PECOS-packages/PECOS) High-level Intermediate Representation_\n\n[![PyPI version](https://badge.fury.io/py/phir.svg)](https://badge.fury.io/py/phir)\n[![Python versions](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://img.shields.io/badge/python-3.10%2C%203.11%2C%203.12-blue.svg)\n\n`phir` models the [PHIR specification](./spec.md) as a [Pydantic](https://docs.pydantic.dev/latest/) model.\nSee [our docs](https://cqcl.github.io/phir/).\nIncluded is the tool `phir-cli` that provides validation and pretty printing on the command line.\n\n## Prerequisites\n\nPython \u003e=3.10\n\n## Installation\n\nJust issue `pip install phir` to obtain the latest stable release.\n\n## phir CLI\n\nThe package includes a CLI for directly validating PHIR JSON files using the command line.\n\n```sh\n❯ phir-cli -h\nusage: phir-cli [-h] [-s] [-v] [jsonfile]\n\nValidates and pretty prints valid PHIR\n\npositional arguments:\n  jsonfile       json file to validate against PHIR spec\n\noptions:\n  -h, --help     show this help message and exit\n  -s, --schema   dump JSON schema of the PHIR model and exit\n  -v, --version  show program's version number and exit\n```\n\n## Development\n\nClone the repository and run:\n\n```sh\nuv sync\nuv run pre-commit install\n```\n\nSee `Makefile` for other useful commands.\n\n## Testing\n\nIssue `make tests` from the root directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqcl%2Fphir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcqcl%2Fphir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqcl%2Fphir/lists"}