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

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.0
File Size Uploaded Provenance Actions
genomic_attribute_index-0.2.0.tar.gz 114.5 kB With provenance Details for genomic_attribute_index-0.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 17.2 MB

Release files / genomic_attribute_index-0.2.0.tar.gz

Download URL genomic_attribute_index-0.2.0.tar.gz
Size 114.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9f24e34bc60060bf6a97822623182eeb4accab93ed7148d82ff2b9ff221be6b3
BLAKE2b-256 checksum
How to use checksums
7b639826dfbf94028d446ec5d31a76213841872f496ed66c2dbbe61fe065c173
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 Sep 28, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.0-cp310-abi3-win_amd64.whl
Size 2.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8abda8e2e5800155e3099886928be858f6286454c017b0d24b30bafc20322b5a
BLAKE2b-256 checksum
How to use checksums
959f0ed75c84b9e8ee4d8f9ea984a4c43f82b962da4807f45b0d484bc66b2ce5
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 Sep 28, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.0-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
9fa223198955c299b0634aec18bfaeb6cabeaa2a519972f4e7d3252b262374ae
BLAKE2b-256 checksum
How to use checksums
bcf2ad2791a8ea9875bf051fae4041bcd4c87de5096f16f89cfc8823ce1c833d
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 Sep 28, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.0-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
49bc83f7363958885f30c8a095cd009ad104bc807248b48d4308bdf18cb11e84
BLAKE2b-256 checksum
How to use checksums
c4ebe752490d076ef9155aa684f8a3468ed593f18226dfd84ad81bced69ab360
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 Sep 28, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.0-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
b8b349a66e12c9b21f74d781046aa436963ab66d7661c56d8ebafe1d268c522d
BLAKE2b-256 checksum
How to use checksums
584a6283622845036bcd6e408191f314d1a004614d8de6d850b51ba7b0261bc5
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 Sep 28, 2026.

Transparency log

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

Download URL genomic_attribute_index-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8a43e240b8a38f968d491acc06fe89c3e8b32158a8f6154bb53666ab1c01110d
BLAKE2b-256 checksum
How to use checksums
140e1c486fb7047847f576d5ad84265cf951a2c8dd5cad971b5193a68b0fb32e
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 Sep 28, 2026.

Transparency log

Security for genomic-attribute-index 0.2.0

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.0.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 Sep 28, 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