Skip to main content

genomic-attribute-index Python bindings

The gai package wraps the Rust Genomic Attribute Index builder and indexed reader. It provides 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

gai.sort(Path("annotations.gff3.gz"), Path("annotations.sorted.gff3"))

source = Path("annotations.gff3.gz")
tbi = Path("annotations.gff3.gz.tbi")
gai.build_index(source, tbi, Path("annotations.gff3.gz.gai"), ["Name"])
records = gai.query_index(source, tbi, Path("annotations.gff3.gz.gai"), "BRCA1")
prefix_records = gai.query_index(
    source, tbi, Path("annotations.gff3.gz.gai"), "BRCA", match="prefix"
)
contains_records = gai.query_index(
    source, tbi, Path("annotations.gff3.gz.gai"), "RCA", match="contains"
)
regex_records = gai.query_index(
    source, tbi, Path("annotations.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.2

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.2
File Size Uploaded Provenance Actions
genomic_attribute_index-0.2.2.tar.gz 119.0 kB With provenance Details for genomic_attribute_index-0.2.2.tar.gz

Built distributions (wheels)

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

Total release size: 17.2 MB

Release files / genomic_attribute_index-0.2.2.tar.gz

Download URL genomic_attribute_index-0.2.2.tar.gz
Size 119.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8e087fd0e515bdd7c4188819f15551b558875991d492f160009979aa2929bcb8
BLAKE2b-256 checksum
How to use checksums
367eb5a22bd1c2b326898347b28a4901d7734ef58794d017b274e48b1b8ccb68
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 8, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.2-cp310-abi3-win_amd64.whl
Size 2.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6d1362b0b5e4d15e0e29fe335856dda5457b54a9e996026a53ac649f2a2c341a
BLAKE2b-256 checksum
How to use checksums
4c33c05977966f234d88dd52660417b7593022314d7f95f20cc344aec4014312
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 8, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.2-cp310-abi3-manylinux_2_34_x86_64.whl
Size 3.8 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
a603f0d5df16e479489e06c2acc85a171b926601e8291e45f2638cf7bbc3a9cb
BLAKE2b-256 checksum
How to use checksums
9f3bfab353235c067cb4efac225c3c4b2338feb63401cb7efb15d8ac1b8a0930
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 8, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.2-cp310-abi3-manylinux_2_34_aarch64.whl
Size 3.7 MB
Tags CPython 3.10 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
3a3254ef305ff3ac89c306c80c60ecf2e277989de852e30d07fc1ee2c7ef69b3
BLAKE2b-256 checksum
How to use checksums
2afa977bd0addb988cf6fe7f5ad07141d7f2c9fcd915659e789d82173ef9fad8
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 8, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.2-cp310-abi3-macosx_11_0_arm64.whl
Size 3.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6d8e607e2336abe15e47031e1edf03b4369417b52d32c75aef46357bcd9846ea
BLAKE2b-256 checksum
How to use checksums
20b2c7120f75fca8ffd9c80a7accaff4fd798c48813584dd6bed15d5268c1ee0
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 8, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.2-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3165ac9ccd5840106cd6137841436785de1cdc4c76b83782298d943b77dbb1d0
BLAKE2b-256 checksum
How to use checksums
27202d3a79eed23235e404e38d516c55b9a0a285ce98d3f116113a897ce23b24
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 8, 2026.

Transparency log

Security for genomic-attribute-index 0.2.2

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.2.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 8, 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