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.2.tar.gz (89.2 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.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (296.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.2-cp313-cp313-macosx_11_0_arm64.whl (259.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (296.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.2-cp312-cp312-macosx_11_0_arm64.whl (259.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (295.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.2-cp311-cp311-macosx_11_0_arm64.whl (261.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (295.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.2-cp310-cp310-macosx_11_0_arm64.whl (261.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: tinyhgvs-0.3.2.tar.gz
  • Upload date:
  • Size: 89.2 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.2.tar.gz
Algorithm Hash digest
SHA256 e356b3485c0f08edd31ea00007da5446f19e3c5e8866752e02dd88646e313314
MD5 9504ebd682bcab027ac173ed19686e69
BLAKE2b-256 e34522643a1db8db55145a7be3642fc2710961f9e8a349db53d47836eec10950

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 87fbd58d7659e52f4def3891e6dfa935f087cabbaaf3e7e50310a77c3dfe2731
MD5 8946c5d394be1fb0119a75e414f854bf
BLAKE2b-256 7c9ebe653b4c2bd45fcbc27c4265bdd2ceaf8e3909ad9427ae1385f809931d49

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa60113d1d0466f25fd175ff4b5e4351cceb5f311317f3a0cbadede1b27b94ef
MD5 68bae23f8e8ba2e44e8e838d44622907
BLAKE2b-256 162aa84a24bbbbe8d6e6ce2aabc05077de9c5ca4eecb98b0713370d1abab387b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31fda0f2a7967a8e360c019f66b57131a0c8359c33ee532016fcadbf93b28cd5
MD5 79e41cb81414e8d09eccb16f1b9b6477
BLAKE2b-256 5cb8bd6423ddcfc898e1f6fb9a5ef5c5ba49ea8fa41312b5fd8b3eff26690b65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f490550cb07d5f01b4130adafd91afc222475c48042596192463e15f8bad152
MD5 133d9f2ddd660c20987764253a9578cb
BLAKE2b-256 e9bc79806bf1a43d04f72f490c85fff330b99fd2440913f77a35607cbc0bd4f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81ecdbce296f6d519a05d510e48efe60cd61be4f57f68683478669d00fa84a0a
MD5 87e0e10d35b9dc568b090c8d4567e24e
BLAKE2b-256 3406245592b15817442894f1a4d2dd7949dd5763d31ae6930e2ff8013a91b708

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcc4aa1acb2db1e05dc4cc66bb65a9d556662b61d9501b0ad5a8276df6e7adf9
MD5 031607467d362492f6003908508d720b
BLAKE2b-256 542259261972c11f2fe7fb0d8638840da21abc32495fec196c4a34392a1339fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f8710e58a486b28839d24562f766433cf87c270887088b8863cf9c8c5321f703
MD5 2913ad0847c241c20e9175d5d2654300
BLAKE2b-256 9ba7f7193dce70c400fba8260c7d5975aed837bba85ee1fcf7fcddbd84cd3ece

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e06713f6620cecab814d3ef36ff6a4f82a00a866deec154a48f98da9a50f4c2b
MD5 7ec138961f452c6959a2dc911b474bb7
BLAKE2b-256 5857a17b4318e05d5fe9c10d63290a4d4627d03abb8811cce5d51cb08742a34a

See more details on using hashes here.

Provenance

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