Skip to main content

A collection of classes and functions to facilitate interaction with django.tfbindingandmodeling.com

Project description

labretriever

A Python package for querying and managing genomic and transcriptomic datasets hosted on HuggingFace Hub. It provides a unified SQL interface (via DuckDB) across heterogeneous datasets, with local caching and structured metadata exploration.

See the documentation for full usage guides and API reference. The BrentLab yeast resources collection is an example of datasets designed to work with this package.

Installation

Install the latest release from PyPI:

pip install labretriever

To get the most recent changes ahead of a PyPI release, install directly from the main branch on GitHub:

pip install git+https://github.com/cmatKhan/labretriever.git@main

Set your HuggingFace token if accessing private datasets:

export HF_TOKEN=your_token_here

Usage

from labretriever import VirtualDB

vdb = VirtualDB("config.yaml")

# Discover available views
vdb.tables()
vdb.describe("harbison")

# Query with SQL
df = vdb.query("SELECT * FROM harbison_meta WHERE carbon_source = $cs", cs="glucose")

VirtualDB loads datasets from HuggingFace (caching locally), constructs DuckDB views over Parquet files, and exposes metadata and full-data views for SQL querying. See the docs for how to write a config.yaml and structure your HuggingFace dataset cards.

Development

git clone https://github.com/cmatKhan/labretriever
cd labretriever
poetry install
poetry run pre-commit install
poetry run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labretriever-1.1.1.tar.gz (122.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labretriever-1.1.1-py3-none-any.whl (135.0 kB view details)

Uploaded Python 3

File details

Details for the file labretriever-1.1.1.tar.gz.

File metadata

  • Download URL: labretriever-1.1.1.tar.gz
  • Upload date:
  • Size: 122.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for labretriever-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7bd29e2ddf64559958f8f1b9aed9ab7a23b1d290e1f5dc174259b27c107847e5
MD5 ce3f437c87b32b7c4c745bee98768bfc
BLAKE2b-256 c1a589872c6ad3b8d65627f28c3d99b71bc924a8e22974258217ada3ad92f365

See more details on using hashes here.

Provenance

The following attestation bundles were made for labretriever-1.1.1.tar.gz:

Publisher: publish.yml on cmatKhan/labretriever

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file labretriever-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: labretriever-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 135.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for labretriever-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6d8cfa5e552ee6563de5a3728d146bc3eddb7a16d7cee3bff5beb424199e7a5
MD5 a3906335f7854914c679e3d83ac85c87
BLAKE2b-256 5d32c9eb1dcb66e98612fc2d8b56563c35738427f11d2e900298e6799de62b06

See more details on using hashes here.

Provenance

The following attestation bundles were made for labretriever-1.1.1-py3-none-any.whl:

Publisher: publish.yml on cmatKhan/labretriever

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page