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.6.1.tar.gz (102.0 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.6.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (322.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.1-cp313-cp313-macosx_11_0_arm64.whl (285.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (322.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.1-cp312-cp312-macosx_11_0_arm64.whl (285.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (322.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.1-cp311-cp311-macosx_11_0_arm64.whl (287.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (324.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.1-cp310-cp310-macosx_11_0_arm64.whl (287.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for tinyhgvs-0.6.1.tar.gz
Algorithm Hash digest
SHA256 010150a56f11c71f2d183224c773ba8ae2b1e2ad03f4f708881fe5a7e381cfd5
MD5 37e514d3a95e1891ce6a208da3a46d6e
BLAKE2b-256 ab0c1557df4f700193bdc1ef020ec4e080b0b3eaff4b1858fee3b490313f35c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1.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.6.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 80bf1beb2f2363d85cde106165f4bc2e21f12d4e585107c45e00f1a2dd516ffe
MD5 bf582c8feaa971922c1d3375d7334d71
BLAKE2b-256 ac1ace215664d9c37074636e8ef1c965fe604c167ab2ca33001754c1b80329a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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.6.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffec436e6f249f70308148d45ecf6c5552b67d3628f64ee685411b3653246f4d
MD5 05a9ed7d7aac15a0e7be11258abd3c1b
BLAKE2b-256 fa5fddcf277467090170a464875b5a65ace25310f0ac2e53a6030ab571e822bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2cab4e0eb9785f3f39c3133d9e423aca038fa632444c52c7d079e7adb0a976de
MD5 85f1ffcbac2c58e7ca5eb14838878731
BLAKE2b-256 fad30d42746e731f59d1a2a96df373d51666d8524fd75b4807090b27184543d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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.6.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 543a2275a0d4141954e94a42e88d11ca11040c10bcd9765e26f2d916030299e8
MD5 d28671638d5d32f5e5e9efc5d985715e
BLAKE2b-256 3f7f9c84d78e1c414a510d0aa53da4b7bb9cb98a25521cefd18903eb710edb1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b4a225c472d0f5feb17cdd823a3394a757fc298ac73cd41e17b349df7c3056a9
MD5 3a49cbb05b50159400838603731ac179
BLAKE2b-256 72814933a670d3fde76b572b0b5c038f924e3eeff80bf8c47f7a8602c154c279

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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.6.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8f79b619324e40029aa50f9375c114e70eec77228f1243b599d574bbb41d6a6
MD5 f4e4758f7c2d4d8d613eec9f11b0c34e
BLAKE2b-256 cced0ca81de3cdc36ddc94a7c234f6d6222ccf1c588612cbcf468308aa88f96e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8096c2d316dd4c46085a5f95d3be6aa6fee3c471fc71dc00d78118aeb9580f87
MD5 dbd679b55f851978edd196df63442f0c
BLAKE2b-256 af6470e63b78c1a6f3ad641bf77f20271783e6ccf632482433153a9e909ff54b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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.6.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tinyhgvs-0.6.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2870ed5c4a50d0207691a7c55325c8e0de21d1c47ba7c284dd3daf199343ec0
MD5 28d129f52cdf5b3bdd2f6de67ab24c66
BLAKE2b-256 9bfc1bd6b6aa994437393a7b17de3f0778eb011cf8183c226d81f8f237c19143

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyhgvs-0.6.1-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