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.1.tar.gz (91.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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (317.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.1-cp313-cp313-macosx_11_0_arm64.whl (282.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (317.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.1-cp312-cp312-macosx_11_0_arm64.whl (282.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (317.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.1-cp311-cp311-macosx_11_0_arm64.whl (284.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (317.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.1-cp310-cp310-macosx_11_0_arm64.whl (284.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: tinyhgvs-0.3.1.tar.gz
  • Upload date:
  • Size: 91.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.1.tar.gz
Algorithm Hash digest
SHA256 331f7117d46c2e733033c72618da020a7019f17c99c0643f45e9b5bce1086a6b
MD5 57412acf5c8e5ff4861a0e48a81b7d89
BLAKE2b-256 957258b4ea7293703c0de85ac1c30172ce9b3dee25a72ac71912cd85b0a75bcf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0c4ec07bd365aebd5c9ef7515dd087ef0b07224828f6e3134736418749e4aa8c
MD5 06fc487004203a5a0d2a6826071f38b1
BLAKE2b-256 a4b5163d4c2ba6ffcbbc167d322e6a9f6d3ba05cbc9352810484e1a54f28b341

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48cf08027b41de35627b3a45b2563d7c6126ed8402ea36771c7da7f7fa362d77
MD5 61d8cfc015c4bb4b2c786f52f426f6e0
BLAKE2b-256 cb4e252c191a9fe101d97b97cd508cd9e5057831bb84b49166fdbc6480486498

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee61409335091e5bccc7f254d474e1d9e61fca463a73e9d10b36cbc99b7c1d77
MD5 b45b6d54d5bee7681de6fd456a4f7beb
BLAKE2b-256 4317a4256133aa1d6149106beb4e848cea9fb8a62c228106d7e5c4ad4ecf66c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ced7c85b029258826c5ce98148046d37693f19d40139c3413cf1271f8af54530
MD5 25e60b059679cf871c83f9b074c2e84e
BLAKE2b-256 224dd1fe2f19fcb0cc3051c8f763d8868d15ddd2a6134b711ed0579fb6f90ca6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5827a3a4e0a2afe8d3cd844c1a136219db77a00f6f3079ce1cd87ea7a626d061
MD5 e020254be06edfcc7dfca1b8b09f953b
BLAKE2b-256 b293ffe7995d2c36403a2a1f395f4d7ef7dd973f5a3a2d2b25466909bf8f05a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4223d665a5a1822b5ec6a26178ac217512abce994a6017a04127359713ed925e
MD5 f43e3cdae4a0ba4c6f8fef939c0323b4
BLAKE2b-256 e3201379101983e8000cfb29e7670c0f5fb7a54f326d77127c1a32bde75825b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f33e1c930c1d04cfafe351b65e0b06e232ac1bc35d44bfb51ee0387d7556a026
MD5 f29b684f73cb7a3a10f5706ee6b8f933
BLAKE2b-256 2f57d170853e32f40095953dec21bee8d963a8a29ef87349c3cba75e30c1cdf8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b249a9bc1418b83d3f8d4a822b6485484a3fca69fddf49ec604f60c3e9ab579
MD5 145863b2b6a848b8cfbae6689498f0be
BLAKE2b-256 513c014af31b65e2fe62845728fc68968375fe7d8cb729aea7c1cfff835fc4ab

See more details on using hashes here.

Provenance

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