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.5.0.tar.gz (92.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.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (303.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.5.0-cp313-cp313-macosx_11_0_arm64.whl (264.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (303.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

tinyhgvs-0.5.0-cp312-cp312-macosx_11_0_arm64.whl (264.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (302.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.5.0-cp311-cp311-macosx_11_0_arm64.whl (267.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (303.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tinyhgvs-0.5.0-cp310-cp310-macosx_11_0_arm64.whl (268.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for tinyhgvs-0.5.0.tar.gz
Algorithm Hash digest
SHA256 471ec0da3bf6de0a9e0d49d04d63f0934a362ebf7733c38371cbd5c85c431533
MD5 31cb2d852e92b1836d48fac2b4b0069e
BLAKE2b-256 a41105ab5b9d3419152e33ccefd04de989febff3ac9c05dc31dad81fb33cfeb6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d06b14141771ee726c60e3f37ccf65a7f9b61f4b266862595bed5bf0ef7499f
MD5 65cf398c2d51483c54e4aafc07d5ce28
BLAKE2b-256 568e0b228b1a641725b16527c8b98075e9d064847aa4e1ccc1b3a009263a41ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7e24fdb0af39d3781a31fa361476be7189ef4adb40ec48d239903e6a075af37
MD5 ff721331fadd85104fba30b4b3ab5613
BLAKE2b-256 e5dd9419ec689df3a2fc5482c3d1423b8742b73d948a6754bf9a6cf77af5f13c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02f2c9e4582f03be83e7b1010ea77b4fc58933a8d74fecd0a28bd5d1920b6c02
MD5 e7ebbe8d6a8d45de4c8d3db4f33c32d0
BLAKE2b-256 400e9226952c8122401c5d8ce3e4891222851dea4062a0ed69bf26798653b001

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bee3b1b9f9fc0ed49d28ecfbf8164ab99d94e3910608ebcd8cdbc3c9e565183
MD5 f83610c865706129cb7a2ceb3f533168
BLAKE2b-256 29bc8bae8449d0557a971bb29c8c38ce26c2be8a77d24035d87bfa0cf092d809

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d9de732195c237151c31ed2cca08d2d4989153d74b026bf3bb9b47be15cca823
MD5 e87f27529a1427c96f8f76ccac673e7f
BLAKE2b-256 149ce629ba6df53e85b967f3b24cfb776b0d8fedb2ba608112d1bec77763bf5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34a5744589db222e9678fc6a53b47645cd57c025eda398f995cceb61839f413d
MD5 18ae06dcab95175481f7eb6029d4dbda
BLAKE2b-256 0a8ac7aac6edc8139ebf3fa610e972ed1ff23b7900e18df574f489290e88577f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 150c10470fcb7fdfc61d24bcdbe9770d13acd6bec3702eada62d6b2138848abe
MD5 3eb55b974cc3e6d8e5a03632fd60ef2a
BLAKE2b-256 6003d9b72853f55a0749437033206b2d0d0d5d053aa3713573f6750594c16b97

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79ca7ddfe9ae2e1fa338effb8cc1797563cb1c931e6bb164095cfc8e6b5e57fe
MD5 92602adaffa2a0fd5a7a92d5ae01c8bb
BLAKE2b-256 762bde2f7a1e8cdbcb1e242b22b456105678c00296f25aba0b0ed19e3e805a7a

See more details on using hashes here.

Provenance

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