{"id":47617133,"url":"https://github.com/svm-zhang/tinyhgvs","last_synced_at":"2026-04-05T08:01:28.502Z","repository":{"id":345785852,"uuid":"913689777","full_name":"svm-zhang/tinyhgvs","owner":"svm-zhang","description":"Lightweight HGVS variant parser","archived":false,"fork":false,"pushed_at":"2026-04-01T16:35:31.000Z","size":389,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-02T05:11:30.366Z","etag":null,"topics":["bioinformatics","genomics","hgvs","parser","variant-analysis"],"latest_commit_sha":null,"homepage":"https://svm-zhang.github.io/tinyhgvs/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svm-zhang.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-08T07:03:39.000Z","updated_at":"2026-04-01T16:28:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/svm-zhang/tinyhgvs","commit_stats":null,"previous_names":["svm-zhang/tinyhgvs"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/svm-zhang/tinyhgvs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svm-zhang%2Ftinyhgvs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svm-zhang%2Ftinyhgvs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svm-zhang%2Ftinyhgvs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svm-zhang%2Ftinyhgvs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svm-zhang","download_url":"https://codeload.github.com/svm-zhang/tinyhgvs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svm-zhang%2Ftinyhgvs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31428645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T02:22:46.605Z","status":"ssl_error","status_checked_at":"2026-04-05T02:22:33.263Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bioinformatics","genomics","hgvs","parser","variant-analysis"],"created_at":"2026-04-01T21:36:15.211Z","updated_at":"2026-04-05T08:01:28.494Z","avatar_url":"https://github.com/svm-zhang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinyhgvs\n\n[![PyPI](https://img.shields.io/pypi/v/tinyhgvs.svg)](https://pypi.org/project/tinyhgvs/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/tinyhgvs.svg)](https://pypi.org/project/tinyhgvs/)\n[![CI](https://github.com/svm-zhang/tinyhgvs/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/svm-zhang/tinyhgvs/actions/workflows/ci.yml)\n[![License](https://img.shields.io/github/license/svm-zhang/tinyhgvs.svg)](https://github.com/svm-zhang/tinyhgvs/blob/main/LICENSE)\n[![crates.io](https://img.shields.io/crates/v/tinyhgvs.svg)](https://crates.io/crates/tinyhgvs)\n[![docs.rs](https://img.shields.io/docsrs/tinyhgvs)](https://docs.rs/tinyhgvs)\n\n`tinyhgvs` is a lightweight HGVS parsing Python library backed by a core parser and\nstructured data and error model implemented in Rust.\n\n## Installation\n\n`tinyhgvs` can be installed directly from PyPI:\n\n```bash\npip install tinyhgvs\n```\n\n## Quick start\n\n- A splicing-site substitution crossing an exon/intron boundary:\n\n```python\nfrom tinyhgvs import parse_hgvs\n\nvariant = parse_hgvs(\"NM_004006.2:c.357+1G\u003eA\")\nprint(variant.reference.primary.id)\nprint(variant.coordinate_system.value)\nprint(variant.description.location.start.coordinate)\nprint(variant.description.location.start.offset)\n```\n\n- An exact repeat is parsed into a structured repeat edit:\n\n```python\nfrom tinyhgvs import parse_hgvs\n\nvariant = parse_hgvs(\"NC_000014.8:g.123CAG[23]\")\nprint(variant.description.location.start.coordinate)\nprint(variant.description.edit.blocks[0].unit)\nprint(variant.description.edit.blocks[0].count)\n```\n\n- A protein frameshift variant:\n\n```python\nfrom tinyhgvs import parse_hgvs\n\nvariant = parse_hgvs(\"NP_0123456.1:p.Arg97ProfsTer23\")\nprint(variant.description.effect.edit.to_residue)\nprint(variant.description.effect.edit.stop.ordinal)\n```\n\n- Known but unsupported HGVS syntax raises `TinyHGVSError` with a diagnostic code:\n\n```python\nfrom tinyhgvs import TinyHGVSError, parse_hgvs\n\ntry:\n    parse_hgvs(\"NC_000001.11:g.[123G\u003eA;345del]\")\nexcept TinyHGVSError as error:\n    print(error.code)\n```\n\n## Documentation\n\nPlease refer to official documents for details about both Python and Rust APIs:\n\n- [Python API and project docs](https://svm-zhang.github.io/tinyhgvs)\n- [Rust API docs](https://docs.rs/tinyhgvs)\n\n## Citation\n\nIf you use `tinyhgvs` in your project, please kindly cite the github repository.\n\n## License\n\n`tinyhgvs` is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvm-zhang%2Ftinyhgvs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvm-zhang%2Ftinyhgvs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvm-zhang%2Ftinyhgvs/lists"}