Skip to main content

Hybrid Rust/Python library for parsing HGVS variants.

Project description

tinyhgvs

tinyhgvs is a lightweight HGVS parsing Python library backed by a core parser and structured data and error model implemented in Rust.

Installation

tinyhgvs can be installed directly from PyPI:

pip install tinyhgvs

Quick start

  • A splicing-site substitution crossing exon/intron boundary:
from tinyhgvs import parse_hgvs

variant = parse_hgvs("NM_004006.2:c.357+1G>A")
print(variant.reference.primary.id)
print(variant.coordinate_system.value)
print(variant.description.location.start.coordinate)
print(variant.description.location.start.offset)
  • Known but unsupported HGVS syntax raises TINYHGVSError with diagnostic code:
from tinyhgvs import TinyHGVSError, parse_hgvs

try:
    parse_hgvs("NC_000001.11:g.[123G>A;345del]")
except TinyHGVSError as error:
    print(error.code)

Documentation

Please refer to official documents for details about both Python and Rust APIs:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tinyhgvs-0.3.3.tar.gz (89.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tinyhgvs-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.3-cp313-cp313-macosx_11_0_arm64.whl (261.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.3-cp312-cp312-macosx_11_0_arm64.whl (261.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (299.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.3-cp311-cp311-macosx_11_0_arm64.whl (263.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.3-cp310-cp310-macosx_11_0_arm64.whl (264.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file tinyhgvs-0.3.3.tar.gz.

File metadata

  • Download URL: tinyhgvs-0.3.3.tar.gz
  • Upload date:
  • Size: 89.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tinyhgvs-0.3.3.tar.gz
Algorithm Hash digest
SHA256 ccbd6c4e96a832a0cfd4e432e4644bc1faef6feb6116fd7c75a2eec62aed6953
MD5 467f34e15878316c772c2c676084d95b
BLAKE2b-256 e6ec80f9a23e151d8f5c3eb7cee198335d9020344d6f0205c315243f1e813162

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3.tar.gz:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60529542fc6d9a6eb177330f71b8126728101e968d64a88fe3c51860fccc0fd8
MD5 c23489263690e719b51041d9835daaa9
BLAKE2b-256 365aa9a4a9183d769889466f7a6caf99e5c9475f7572b6621b58b13ab9ef897f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9837b00e65bb0e44fb02e45c4704e6f28423792178ae532b864d76c24e4a3fec
MD5 e959796878fa513d07d0b99fb27a50d2
BLAKE2b-256 12a53587497f4bedf9177bd001a9c73e72e0626286f2d05d8855c7589abd9dbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 075835639b837b7ef7365885985eceac4262dda5eda9eb72015859d3994809ab
MD5 056167ede0b9e900b72d080cd740bba7
BLAKE2b-256 15dfeb4a9bc5c0b21a4c5cc5e1615290abaf61fa943d977c8085e093e6495c69

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e06cecf7053917350cbef1254e0b4e73a2432283b586fd383f77d1f3de184a0
MD5 67f4d39ed903ae09e072bfbd5bf43ca8
BLAKE2b-256 05e496de651cc37b02dd3512d72613962b3f5b3b081e6bef770fd6cd0c255f81

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 014eb259065073fa554c4b9254962b5f0cccd2703b5e0ac97992b1af2f232853
MD5 0fde46aa93d4acf19f9217f7f1e8a3b4
BLAKE2b-256 2a96dc3bd7bc08366acceda7c6a766ec2e0909988ad875beec14cb0a10f5a1f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97230bab9289f67cc9be4412370c31545d748dbbee06b11f9a44d9fcf2aa4d59
MD5 8b4b4af075588899512a9076e8088d6d
BLAKE2b-256 25caa9795952eda852b0fa54800ed5d8c4c361cd128454d1dec405d82bf356f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0bf1a41c3d0bfa9d319bab012ba59248b6c08e29066492412a9e41840acd477e
MD5 40b5bf1095ed8a5f80084862c77f1a92
BLAKE2b-256 10db2be022e56321a0718ae048af426048ee36c48eb4a05643111ae1ada75f7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyhgvs-0.3.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.3.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2994130a63585f14b53e88d477f05a06d11a57639f17ac825096f3f47aa08a4c
MD5 8152dda7d09e7fec2fe80123ed95c849
BLAKE2b-256 fb920c9f151880273d8ba4f2e522fb6d2d985d72023b091ed6ce6beb0e8d08f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.3.3-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release-python.yml on svm-zhang/tinyhgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page