Skip to main content

genomic-attribute-index Python bindings

The gai package wraps the Rust Genomic Attribute Index compressor, builder, and indexed reader. It provides BGZF compression with a CSI built in the same pass, deterministic GAI construction, TBI/CSI-backed exact, prefix, contains, or regex attribute queries, structured records and metadata, and typed exceptions for stale or corrupt inputs.

from pathlib import Path
import gai

sorted_source = Path("annotations.sorted.gff3")
bgzf_source = Path("annotations.sorted.gff3.gz")
gai.compress(sorted_source, bgzf_source)  # writes annotations.sorted.gff3.gz.csi
csi = Path("annotations.sorted.gff3.gz.csi")
gai.build_index(bgzf_source, csi, Path("annotations.sorted.gff3.gz.gai"), ["Name"])
records = gai.query_index(
    bgzf_source, csi, Path("annotations.sorted.gff3.gz.gai"), "BRCA1"
)
prefix_records = gai.query_index(
    bgzf_source, csi, Path("annotations.sorted.gff3.gz.gai"), "BRCA", match="prefix"
)
contains_records = gai.query_index(
    bgzf_source, csi, Path("annotations.sorted.gff3.gz.gai"), "RCA", match="contains"
)
regex_records = gai.query_index(
    bgzf_source, csi, Path("annotations.sorted.gff3.gz.gai"), r"^BRCA[0-9]+$", match="regex"
)

See the repository README for the complete API and development instructions.

Metadata

Release files for genomic-attribute-index 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genomic-attribute-index 0.2.4
File Size Uploaded Provenance Actions
genomic_attribute_index-0.2.4.tar.gz 135.8 kB With provenance Details for genomic_attribute_index-0.2.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for genomic-attribute-index 0.2.4
File Actions
genomic_attribute_index-0.2.4-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for genomic_attribute_index-0.2.4-cp310-abi3-win_amd64.whl
genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_x86_64.whl CPython 3.10 abi3 Linux glibc 2.34+ x86-64 Details for genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_x86_64.whl
genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_aarch64.whl CPython 3.10 abi3 Linux glibc 2.34+ ARM64 Details for genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_aarch64.whl
genomic_attribute_index-0.2.4-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for genomic_attribute_index-0.2.4-cp310-abi3-macosx_11_0_arm64.whl
genomic_attribute_index-0.2.4-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for genomic_attribute_index-0.2.4-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 17.9 MB

Release files / genomic_attribute_index-0.2.4.tar.gz

Download URL genomic_attribute_index-0.2.4.tar.gz
Size 135.8 kB
Tags Source
SHA-256 checksum
How to use checksums
84b57bd5ba77ff23a9a92110f0140e2e3857f0b2fd4a0e9ef2bc46c06eb468a0
BLAKE2b-256 checksum
How to use checksums
6e497b809cb66a74e60889cdf0322fa50c76bd549830a1fdbf03587de674b21e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / genomic_attribute_index-0.2.4-cp310-abi3-win_amd64.whl

Download URL genomic_attribute_index-0.2.4-cp310-abi3-win_amd64.whl
Size 3.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d9a14b11375baa06bfc6f58600905aa0abc0700681e9d6f4a2f78c7f2604c276
BLAKE2b-256 checksum
How to use checksums
dc40b7bbc8f0586b3c9b11f2321fc3789b70103ce31ae15ec56b7b07f7d0ab55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_x86_64.whl
Size 4.0 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
64552e8a26cf447f7ad9d0d0f3821e6a9736fbbc92bb147f7789abdb43fab593
BLAKE2b-256 checksum
How to use checksums
d7ddc11ace316f23549efd86473c210359d510b40a00316f5176a24a9641a275
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_aarch64.whl

Download URL genomic_attribute_index-0.2.4-cp310-abi3-manylinux_2_34_aarch64.whl
Size 3.9 MB
Tags CPython 3.10 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
3385d6f623ac75605dfdde3468936e7319dfed2576f77d98d9b7c77f15b1d3f6
BLAKE2b-256 checksum
How to use checksums
7d3b3605c1846c5c52e05a0abf9be735cab689a88881bfcd3f8423829671b9c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / genomic_attribute_index-0.2.4-cp310-abi3-macosx_11_0_arm64.whl

Download URL genomic_attribute_index-0.2.4-cp310-abi3-macosx_11_0_arm64.whl
Size 3.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4e4981fdf8fcc12526db5be7f41771fa8011eab0d98d62109cdca060ca8f9d95
BLAKE2b-256 checksum
How to use checksums
b2910b5aec1333084357d392e68e409ad2f4aa774ac5f50e4e009aed9101ac17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / genomic_attribute_index-0.2.4-cp310-abi3-macosx_10_12_x86_64.whl

Download URL genomic_attribute_index-0.2.4-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ab15d951e8abf8f4dad7f0047d9a07d1fe45b043e13f4878d05f4834019ebc4d
BLAKE2b-256 checksum
How to use checksums
11a195dc75b34b663c8d0a0ca56071516ca58fbd926240a284ff113fcd1c038c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Security for genomic-attribute-index 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for genomic_attribute_index-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page