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

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (282.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tinyhgvs-0.3.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (282.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tinyhgvs-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (317.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tinyhgvs-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (284.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tinyhgvs-0.3.0-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.0-cp310-cp310-macosx_11_0_arm64.whl (284.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: tinyhgvs-0.3.0.tar.gz
  • Upload date:
  • Size: 91.4 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.0.tar.gz
Algorithm Hash digest
SHA256 81a0eb9b89eff12760275e71d37938fe3756fd8dc844ad02ecb76a5f25f34406
MD5 5fc203784cfd08213e482733c9ef3d1e
BLAKE2b-256 9d791e4b8bd6e6e20465213d508b999c8cdda29a7036b832d2468970ac6d87b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b195943c9c0bf61dbb3b80588146f871f79836f76cb98f8878275747894d5072
MD5 773cb9bac67434f4a18304a82ca32fa3
BLAKE2b-256 0517eca073c813adf97a222092a0935225cb82319185f33522575e2b92bdb8c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 738d475b525548c7c8897aef6b2cdc3572f9c97ddd7ab8a4f04d2048cde29631
MD5 9306995438aadfa09a03425d3ffe2c2b
BLAKE2b-256 150bafb47ab2a10d8a041ade6e55f0924b3df54808e569d624ad5301a4f199d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f412130425a4bf0be7e829b155bb48f564c056e53dfe75eb85e56f6976836984
MD5 059aed116e757d141c62aa67d2ba8be1
BLAKE2b-256 e11ce2a8049ebeba0dea530809238d37fdcd19808c5efa8b3f82ed0c51ab50d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66aa99b9d3756df90ba08f432bc2be840b55767f71b0d877df70035121f9c031
MD5 c902bc03f6c8176e9296837becdbe9ab
BLAKE2b-256 92e4b9bd42bf939d2810331f326c597dd1d447482ef8754b0168ff4f0f7c6c75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4fd65ea811951f68e8a4bd5463018c46708419ea2dca4a2c660411154b5f679
MD5 7d177a5949ee10f6383d23a0c1610be0
BLAKE2b-256 a1d15a36890ba154b7e9bdc6c3f17b2cfea2c8555da268f4f16b89034469367f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04e3c52961754f6927c5efdb074ac8519571d4ce63ed18b006e5d559b8a86734
MD5 1f43d7fa2ed2ef3f4d86e6651b04e313
BLAKE2b-256 b82ccabc518d3e6dafa083c26c9c1a334249cc8fa4be51ec805ad982549c0fc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9238d97450152c2e77f92904670e4e665cdff9e18162f127a2c0b4abb5f6d9da
MD5 473710c976d81370feb9f68d282faf88
BLAKE2b-256 0e5e1bc98b1e25139c2cec7c5f63b1dd31047ce27bd58e03345fc9ea86ce1ecf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tinyhgvs-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e6206e5423ccb05046b37a07ce9206772aae6053392136fb0e3a93b11c295fa
MD5 ea07dc2a56e024cef33d2825e7d717af
BLAKE2b-256 79f5a342adf81efcb2031e8290a4d4fa9ab6e056b2c8c732d0146784bfac8ea5

See more details on using hashes here.

Provenance

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