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.0.tar.gz (99.5 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.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (313.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.0-cp313-cp313-macosx_11_0_arm64.whl (275.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (313.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.0-cp312-cp312-macosx_11_0_arm64.whl (275.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.0-cp311-cp311-macosx_11_0_arm64.whl (278.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (313.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.0-cp310-cp310-macosx_11_0_arm64.whl (279.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: tinyhgvs-0.6.0.tar.gz
  • Upload date:
  • Size: 99.5 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.0.tar.gz
Algorithm Hash digest
SHA256 864afdeb0f522dcb4de862ca2e0f17ea81850db6e9bb8b5b8cb49de046e904b8
MD5 f45b562d0efc2a67a18508b084e0bd4f
BLAKE2b-256 3744febb3d8d864fd502f5c513b0ea7ab1bf098482b7830fd821eb989def306b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ef2bb733182665e9ae80cef12a1841c3251a317056e509ec8c0707c67c3cae7
MD5 629dbd4e67fa1b94366afccca691459a
BLAKE2b-256 a389bfd045e49e4ac76d7d5a498bd4d197c2ff2b9ada1260a884a8012dfe9edd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 faec4ff01a8768163dc1d314e9820927326cceb33973ec59a63532c58126a6d4
MD5 7e2bb039e5afa2704b3d08746f340849
BLAKE2b-256 c17f41094275d919e193f66c90aca01af9425b234d356900afe69d211630a7c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34b1ed4ea98851620277db831f419de21546f102e81e80b25988776ac83e6fa4
MD5 20f0aba525a69795ff348f1f0cb46eba
BLAKE2b-256 120b3dc9fc8bd1bc525e7eebae6cf73c416593c3997d1dd2c1741925a74e53be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d34380893d5a6c31d8f918119e1ae9efd2b58f3b20eee01579e6f44380c348f
MD5 2605c31f051d30957a7a0fc3395235be
BLAKE2b-256 b931564c6b2f701643a86e471feef03152e735cbb2b6dc5a83c19583584611a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d214b2f3e93546649c5eb7eb93089e450e56aded59ca2970cf645267f8e5f7d7
MD5 b079a32e5c35b1df2c163eba246ed16e
BLAKE2b-256 60790c4ff77d703dc29c51320c135809c51db724c086269d2ef09701590f4d6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccbcab2bee82a725f2f32a550d95ac7bbc950b69dcff6587e1768866415caba9
MD5 b46eb64725f639891d86a230df1c241c
BLAKE2b-256 fd81b70f54e1a4ef40a5591145459bfd2dcb94e51db5de0b5de4b98009af0d1d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ffc131b7e8a097dc6cc66f96774a3a75420fa5c13300f29fc60b023693f51c42
MD5 53c65368e7626530ffb05980bedba33e
BLAKE2b-256 2fd1df728a24ff2efdfb43c4289482cec404acb6cee2e57ab1497b9a12a7d00c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b2858565cfff95551633673eef71734f3bdd669c429a21f91d00a0296adc19e
MD5 dcdaec46952d05c3780850a3afbf5317
BLAKE2b-256 878377e60715e4379047f5f963e05a3348740e9fa5f79678c110caecbebe3364

See more details on using hashes here.

Provenance

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