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.2.0.tar.gz (88.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.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (312.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.2.0-cp313-cp313-macosx_11_0_arm64.whl (280.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (313.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (280.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (312.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (283.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (312.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (283.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: tinyhgvs-0.2.0.tar.gz
  • Upload date:
  • Size: 88.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.2.0.tar.gz
Algorithm Hash digest
SHA256 dec6c0c3a7b50f7d023a22347080aa1f05307bd909e7476bd0d59fe1658bf8ed
MD5 bdd06a04b7f601b2d29487d7c8e120fc
BLAKE2b-256 c45543ed268af4efebfd5f625997fb6cbe5206304f7b69b15b6699e085b5ca10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0b8834e8f6342272e1d9657b97e59b10acf4c5d10a2156bfc5ef87e48c340f6
MD5 3c64003769190578db727661e543535a
BLAKE2b-256 3b57d73306dfcb2c6a75799cdb5f40921b0e1fb4490e91fe873207363ae4220f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76738bf26296456c32c18be7dab13963d0021aa91a83090448002148354d391d
MD5 709bc15bd4493b4f38fec0f88269799d
BLAKE2b-256 981ea7dee3ab1bfda312833f0f8b09925c83480c6172ba334d20612a317a769a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8051ff07647dcfca6327ab7088d96188b18042ae6d3011886eb1de300bfb7040
MD5 3fb99e43b73d1d88f5de192f2fb95c56
BLAKE2b-256 3a476e3231e16bb66445ad062cdfb1c3110c91b5d777274a5f9cf590dd2b84c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f672ee53a6038c4eba39a2af899c5ddb85edc5da13695b31cd382fe9e642bf9c
MD5 e2996a176e2cd8f30765ffecc0b709aa
BLAKE2b-256 fa1f4a7991bf70bc16b65e00f8dae2167b3771dbe8beeff37fda4cd95ba8c616

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e262688d569cbff4b818baa921c7f4586890492ac810b35dfc70cfd2d1f2c4bf
MD5 b90966af792261c5845fb2f79d394e90
BLAKE2b-256 980f0d0afa2482b73dea11392fd8c663f2d97fb1b7d6c7d7f914ac2756f3d382

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 121420aecde6dcc4682e875398663c5643fc4c2ed1fe77b26488cf746a09f31c
MD5 3901f32fc1af0144874946ec0f68138d
BLAKE2b-256 3b97bab654ff95a349ae9e0597f579caac6c4214225e804539fca28c08a91ef7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31c8ef55a542d1cde8b747f4df5fa465ebbb8304b99be77b292397a5c6f4c073
MD5 f43431017ebcde38e9586603c38aec9b
BLAKE2b-256 6149638ae3c523d449bd520d34578a3f02492c29e5466191c33e70567693c9f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4853d5b3f307bb0377dd2f33e614ced693f297c3bb3ac2459ecba6ef5e1c580
MD5 30387ad9491130174b8a8f56c2552ad1
BLAKE2b-256 56bf64d2e4419ee9b6931874324d872776ac49e193ef7584211791f50ee11bb7

See more details on using hashes here.

Provenance

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