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

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.1
File Size Uploaded Provenance Actions
genomic_attribute_index-0.2.1.tar.gz 116.3 kB With provenance Details for genomic_attribute_index-0.2.1.tar.gz

Built distributions (wheels)

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

Total release size: 17.2 MB

Release files / genomic_attribute_index-0.2.1.tar.gz

Download URL genomic_attribute_index-0.2.1.tar.gz
Size 116.3 kB
Tags Source
SHA-256 checksum
How to use checksums
79971707fd560afed63812ae580eb03618f97e879b55ba88166bd6070154608f
BLAKE2b-256 checksum
How to use checksums
f2c2d1777f2e5220e5367749b6da6b6d8d58acccc3e5e4e53aadc63638529f21
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.1-cp310-abi3-win_amd64.whl

Download URL genomic_attribute_index-0.2.1-cp310-abi3-win_amd64.whl
Size 2.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c30f58b4ecd66f9d63689920072316476ed53aa5a0245902c7990c0426821b2c
BLAKE2b-256 checksum
How to use checksums
b860d8a8fbb7d7003d2e6421ede88e4432a79a5dac6f2bd4ffe5efc9b983cbcc
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.1-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL genomic_attribute_index-0.2.1-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
23d27cd9bc8f9f9234c8c0b524a895a4f23b4083754e416b436be7de863ba7f4
BLAKE2b-256 checksum
How to use checksums
4933e4427f17b55c9c9a3528eb194fddfad47ed1b52708a7ba5dea67467256ba
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.1-cp310-abi3-manylinux_2_34_aarch64.whl

Download URL genomic_attribute_index-0.2.1-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
811b5edb09575907992f925ee6f168ecd33f7017c1ad2a53907f7148c0189a11
BLAKE2b-256 checksum
How to use checksums
57f8b9aa2b32627518096dca38386108aa9cdb2045bdd596d9f2ad9276b884e4
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.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL genomic_attribute_index-0.2.1-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
76741cc7a8ebbb461a82d031b4d92ba38148f8695ae1f8d25c1eb41f111d1d00
BLAKE2b-256 checksum
How to use checksums
ecff29ac44fa8379aa4a5aa5deca49e9281f39928c7154a2a3b48125f10f0470
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.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL genomic_attribute_index-0.2.1-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
a63889f513860fec0d2b8d3139ba19f233a59cbd5d7c28b698548d3067af8d40
BLAKE2b-256 checksum
How to use checksums
13cb0ea0e9252391e1a67a1b2335ee64d0344493cf0efa5c41ffd170a9859790
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.1

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