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

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.2-cp313-cp313-macosx_11_0_arm64.whl (288.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.6.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (324.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.2-cp312-cp312-macosx_11_0_arm64.whl (288.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (324.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.2-cp311-cp311-macosx_11_0_arm64.whl (290.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (325.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.6.2-cp310-cp310-macosx_11_0_arm64.whl (292.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: tinyhgvs-0.6.2.tar.gz
  • Upload date:
  • Size: 106.8 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.2.tar.gz
Algorithm Hash digest
SHA256 16c8a1f313385319e786bcd09284fb44c47680a4936cb2acef8b805b2b1da6fb
MD5 22f6c25172d20cadbbf2f1f1cf00c728
BLAKE2b-256 011d86da8b23967436e15ad1b7ed8510c753e594d07fc3e556c76b8bc50b88c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa7590c7d1d0853ef31f99105fdefc32444508d364c0165359b9db5c6d971dbe
MD5 623f549f1afa36d629c2ac5b7567d1d9
BLAKE2b-256 b9f77c988d119aa157f7c3d7acd95dcae4a0b1bf2ae65a5c102a327ada13e3e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5aae3de1d56c60763980a1d4a0b1980db3d0d58c58d6f919c8a8759f9b5ce7a1
MD5 64d91eb58cfb708e7acb9faf4905aae1
BLAKE2b-256 50ef44d2e9d1739a0ee34f3462eb90c8fa2a100aef77c1d24a94a85756d661a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fbb6ee7b746909ca2db463a6eb9b6dea6fb8c89091a614770a71815fb8bd27d
MD5 85f3e17291cce39f534294c38c1c3e53
BLAKE2b-256 72f3f3779eb1f6f25dddc994ddd27d2ebfc241547a173dcbd77aab8ef8dd09c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47f15e97ea5e726307e996472f8b64175ee2accbc5ae10e441959c0e1e28c5ce
MD5 6ca322f8dd46f69abad00ff9fdab2d28
BLAKE2b-256 c71a06d3901f7c8b6ac99c7c12ff8df7b962ffd51e007d4307d31a958fb89195

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e05e5a88d6848c8943be013fda21a1a66c59006bcae158edd97e68446a87ad1
MD5 15333ce240213cc378e5a41ea2ca0b2a
BLAKE2b-256 1aa2b065bd9af3c045c29849039b52213fca205e0412034bc624cddb0077b742

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25c29a5fd638bb4788e734f3fb5c951cc2e8f1727ff4c6f5288cb6f2182fdc64
MD5 6612b9c4e75c7621fa0c089b36d4a58f
BLAKE2b-256 795986be772b88dd92a92d396b1295a939e8a402b7ddcd501cd53e7bf306d6ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5b94bf8b7e2ac28835e823a9ecc4d7b0cff2bf18dfe5dda7f50b1e7a7d87bab
MD5 746c42b86134d4ebfbdc386770ef0acd
BLAKE2b-256 dfb83e276e4045e4a4d43decfd630615d7108f37ea9bc6b78ac6cffa762b0c9e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.6.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5065c19cf5776204c8d630079b6d89312af37164d9f1a7a139e0d0c1f69dd084
MD5 873ae4732422b0a64e4e543cdc0554e7
BLAKE2b-256 f8cece99ff81b1e9d39bae6a5072d0c6ce2c60a9899b95ebbba3be6e563c385f

See more details on using hashes here.

Provenance

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