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.4.0.tar.gz (92.1 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.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (303.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.4.0-cp313-cp313-macosx_11_0_arm64.whl (264.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (303.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.4.0-cp312-cp312-macosx_11_0_arm64.whl (264.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (303.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.4.0-cp311-cp311-macosx_11_0_arm64.whl (267.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (304.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.4.0-cp310-cp310-macosx_11_0_arm64.whl (268.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for tinyhgvs-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0f4b41816994a5f06814fdb770ee7d25635a58ffb5d2994ed6f3106c713618cf
MD5 30b1f64d1f556e52895dd0d88a004625
BLAKE2b-256 43c423b8ce76fc485a225ff068c62e87e7625bfb8ef832024f1278b4201fc437

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dff5d4bb37cb1f64fb3a8efd98b27b76b1ef0378a9801a266b1ba36bec47a8e1
MD5 ee08c328318994aec3ba91c2b29c8df1
BLAKE2b-256 bb7fe5128a2fbfc7ef95606be8aa14ff6d3d5a26c5f5204eb18069ad39ead616

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d3b204bf47468c0866a59c104e80cdc32dcb9f99e784a4b6ef5300f872241a9
MD5 064c8d634e5c8c065c8edc414d4ce0a0
BLAKE2b-256 8a98c4cb3096329dc100f65330ae78d092dc446d9360f6ff9daf66f025ce9b70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01adfb6afb0505009678af1fd8778d09b254a78a7f00c5a9ce12dfe664ba145c
MD5 68b942014eff7a0ac8c3cb07c64ab54b
BLAKE2b-256 7b8b88a0de4b5c1569f4aee6f8278e0cc7dd0a66643678ea51ff4fbefeb9bce9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76de34c03fb49ac0ca9f3f5c72bf0592714dcbed6a8531dc93afad72597084ad
MD5 68c4a73a2b5d86eb89b4ef79f28ec5be
BLAKE2b-256 47758d67d4e5d42f6224a74834270494ab46c2b5e2f9d0e57a6a20ebc6ceeaf4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f31bdbaf41a761101b99b3b9ed28960a13a780e24599e1f21c694a8b42e0677
MD5 b3bb3d020761ac03e0bcb4709b8c682c
BLAKE2b-256 09056efd766508c537be098f8479d0b5091ba701bbd11d39ba75a2403046e116

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99d507c72cd112d4e838e7fcc2cca34d5dd84c575f740e1407981ae128e65a46
MD5 8904bf52c5c9e82c1d9bfa73bea8f385
BLAKE2b-256 12c3e9105a6507abd3729f81dd24e6547f81422ca07c25f3d3d000eb18f79a2d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7914d71e9d38a778a9b4ffbe02192ebb6f39f7c2c5aff73710fdf3155d9c9c0
MD5 c19ee953697d680fd58d0df32646aca9
BLAKE2b-256 0042ae29b36bab7ba232bd21840489dbd24c1bbbc0b80070bfe0bd1404078ab1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5929fbe28ed3a5595274129ff8785d366bd6f2b5fc1a8de970cb50085ed41bd8
MD5 2fbfeeb2bd43e2e8e48afbbda25291c7
BLAKE2b-256 94c43b4cddffc5d757f33fa4e26e91dd057429c5bda67ecaddf7a43ff2dfe390

See more details on using hashes here.

Provenance

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