{"id":20779730,"url":"https://github.com/openqasm/openqasm-pygments","last_synced_at":"2025-04-30T19:44:52.227Z","repository":{"id":37212147,"uuid":"505424702","full_name":"openqasm/openqasm-pygments","owner":"openqasm","description":"Pygments tools for OpenQASM programs","archived":false,"fork":false,"pushed_at":"2023-04-11T16:26:58.000Z","size":290,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-23T01:03:34.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openqasm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-20T12:05:34.000Z","updated_at":"2024-04-17T14:10:09.000Z","dependencies_parsed_at":"2022-09-04T07:01:13.081Z","dependency_job_id":null,"html_url":"https://github.com/openqasm/openqasm-pygments","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openqasm%2Fopenqasm-pygments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openqasm%2Fopenqasm-pygments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openqasm%2Fopenqasm-pygments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openqasm%2Fopenqasm-pygments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openqasm","download_url":"https://codeload.github.com/openqasm/openqasm-pygments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251773057,"owners_count":21641556,"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":[],"created_at":"2024-11-17T13:29:24.816Z","updated_at":"2025-04-30T19:44:52.206Z","avatar_url":"https://github.com/openqasm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pygments tools for OpenQASM\n\n[![License](https://img.shields.io/github/license/openqasm/openqasm-pygments.svg?style=popout-square)](https://opensource.org/licenses/Apache-2.0)\u003c!--- long-description-skip-begin --\u003e[![Release](https://img.shields.io/github/release/openqasm/openqasm-pygments.svg?style=popout-square)](https://github.com/openqasm/openqasm-pygments/releases)[![Downloads](https://img.shields.io/pypi/dm/openqasm-pygments.svg?style=popout-square)](https://pypi.org/project/openqasm-pygments/)\u003c!--- long-description-skip-end --\u003e\n\nThis repository provides the Python package `openqasm-pygments`, which provides\na lexer for syntax highlighting OpenQASM code with [Pygments](https://pygments.org/).\nThere are current three lexers included, all of which register themselves with\nPygments when this package is installed:\n\n- `OpenQASM3Lexer` (Pygments aliases `openqasm3` and `qasm3`), for parsing\n  OpenQASM 3 code.  Most OpenQASM 2 programs will lex acceptably with this lexer\n  as well, except for some keyword differences.\n- `OpenQASM2Lexer` (aliases `openqasm2` and `qasm2`), for lexing OpenQASM 2\n  programs.\n- `OpenPulseLexer` (aliases `openpulse`), for lexing the OpenPulse pulse\n  calibration dialect also defined in the OpenQASM 3 specification.  For the\n  most part, this lexer will not be used as a root, but the `OpenQASM3Lexer`\n  will delegate lexing of calibration blocks to it, when required.\n\n\n## Installation\n\nInstall the latest release of `openqasm-pygments` package from pip:\n\n```bash\npip install openqasm-pygments\n```\n\nThis will automatically install all the dependencies as well (Pygments, for\nexample) if they are not already installed.\n\n\n## Developing\n\nIf you're looking to contribute to this project, please first read\n[our contributing guidelines](CONTRIBUTING.md).\n\nSet up your development environment by installing the development requirements\nwith pip:\n\n```bash\npip install -r requirements-dev.txt tox\n```\n\nThis installs a few more packages than the dependencies of the package at\nruntime, because there are some tools we use for testing also included, such as\n`tox` and `pytest`.\n\nAfter the development requirements are installed, you can install an editable\nversion of the package with\n\n```bash\npip install -e .\n```\n\nAfter this, any changes you make to the library code will immediately be present\nwhen you open a new Python interpreter session.\n\n\n## License\n\nThis project is licensed under [version 2.0 of the Apache License](LICENSE).\nThis is a Qiskit project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenqasm%2Fopenqasm-pygments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenqasm%2Fopenqasm-pygments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenqasm%2Fopenqasm-pygments/lists"}