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

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.5
File Size Uploaded Provenance Actions
genomic_attribute_index-0.2.5.tar.gz 137.5 kB With provenance Details for genomic_attribute_index-0.2.5.tar.gz

Built distributions (wheels)

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

Total release size: 17.9 MB

Release files / genomic_attribute_index-0.2.5.tar.gz

Download URL genomic_attribute_index-0.2.5.tar.gz
Size 137.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1c59ecf2537756b398da93a4d168ec32337091315fb356ec1fed3b72ad2fd15d
BLAKE2b-256 checksum
How to use checksums
43e570660365a451e8d473158112bf3021b242f1a533ad2c24a3982b09c0f00a
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.5-cp310-abi3-win_amd64.whl

Download URL genomic_attribute_index-0.2.5-cp310-abi3-win_amd64.whl
Size 3.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8018aecf4e27de2569ffb1387f754647453255501200cac904cf53346bcfde50
BLAKE2b-256 checksum
How to use checksums
68c12c3adf0500d8dad9ab3ec6f459d49d37f7a65ac9b3dc1e13f65100e4a764
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.5-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL genomic_attribute_index-0.2.5-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
3fc3b7815bc9a885a1e9b7bfda6bfde9c2ca708c731b33f9106fe62f6a2b052b
BLAKE2b-256 checksum
How to use checksums
fc9f13919465509386c37bcbae473fcadd550b486b57f6b8ddcfb1117a5cb50c
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.5-cp310-abi3-manylinux_2_34_aarch64.whl

Download URL genomic_attribute_index-0.2.5-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
416bc8e2188487fdc0988676a57ad52010ea143c2d8697959bd94fae7f911ccc
BLAKE2b-256 checksum
How to use checksums
d897f21307eb25d72901810c66ed5ff05d1c51f76a7b373f247015a17f5f26b8
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.5-cp310-abi3-macosx_11_0_arm64.whl

Download URL genomic_attribute_index-0.2.5-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
22e24dd534eff9cd5b1d58de9c52ffdc5256c2a83cfe670f606e69b9ac767d13
BLAKE2b-256 checksum
How to use checksums
6489e9208e0bd0524c974ea836ae822136be7fc50109abe45d14d4ff1c0c7442
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.5-cp310-abi3-macosx_10_12_x86_64.whl

Download URL genomic_attribute_index-0.2.5-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
04b2c99549548c8b27770dc1a37fdb834173def00c2c2e26009fe694dc7ec9f7
BLAKE2b-256 checksum
How to use checksums
b6119b5811e4cdf7297fc5781b533c9e35d84be7c496f0733db33d1b93dc65e7
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.5

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