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.6

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.6
File Size Uploaded Provenance Actions
genomic_attribute_index-0.2.6.tar.gz 137.3 kB With provenance Details for genomic_attribute_index-0.2.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for genomic-attribute-index 0.2.6
File Actions
genomic_attribute_index-0.2.6-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for genomic_attribute_index-0.2.6-cp310-abi3-win_amd64.whl
genomic_attribute_index-0.2.6-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.6-cp310-abi3-manylinux_2_34_x86_64.whl
genomic_attribute_index-0.2.6-cp310-abi3-manylinux_2_34_aarch64.whl CPython 3.10 abi3 Linux glibc 2.34+ ARM64 Details for genomic_attribute_index-0.2.6-cp310-abi3-manylinux_2_34_aarch64.whl
genomic_attribute_index-0.2.6-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for genomic_attribute_index-0.2.6-cp310-abi3-macosx_11_0_arm64.whl
genomic_attribute_index-0.2.6-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for genomic_attribute_index-0.2.6-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 17.9 MB

Release files / genomic_attribute_index-0.2.6.tar.gz

Download URL genomic_attribute_index-0.2.6.tar.gz
Size 137.3 kB
Tags Source
SHA-256 checksum
How to use checksums
129fd488a7325f8fb46de44a7561dd662d26edb800eb45d4ad9e2bf068e5f124
BLAKE2b-256 checksum
How to use checksums
0563b479e11611ca91280c96dc345c4f9a237aa74122947f177702dea19d049f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 27, 2026.

Transparency log

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

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

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 27, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.6-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
6660b4472c915fc79e21f1b412946ded99b45790ec08ef4e9da8336665a7c1ac
BLAKE2b-256 checksum
How to use checksums
e1117b886b424f55d9ad1dfdb3951ec69d1b82774900b69729ba5a08becb46d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 27, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.6-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
917fb6d19f9084ebe26102b61c8a16b31d7b1f91764a913e245c607f55415bc5
BLAKE2b-256 checksum
How to use checksums
49d0a6f2de2aa8d06ba3b632b8a249f81ee72d57799a1b4f311d6d6d28f359b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 27, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.6-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
2c4759270687a2e7f4ca5e4d55a62a20c5491412f561382aeb2e5c419cfb9ae5
BLAKE2b-256 checksum
How to use checksums
8b4e89e15a2b5ad1944a86b54422d6efc4563fb68f67e74e0c617e9c84f07874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 27, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.6-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
cc7df55ac4f592ef45657536b08b2ce7c2527ea23e4fa3ff0c3c93add743417c
BLAKE2b-256 checksum
How to use checksums
364dca0a74bfdb7ab7f5bb9994e02d55851fda2a29bc23fc5c3466f79ecf18e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 27, 2026.

Transparency log

Security for genomic-attribute-index 0.2.6

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.6.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 27, 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