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.0.0.tar.gz (104.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.0.0-py3-none-any.whl (114.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: labretriever-1.0.0.tar.gz
  • Upload date:
  • Size: 104.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.0.0.tar.gz
Algorithm Hash digest
SHA256 4e554a6a4383e4bae21fdc2bd88bbf88f9f4b63c6587b543c5da918d4e6bfb2e
MD5 c7977b68762d20b51508c3f94dad4485
BLAKE2b-256 0e0900a43ade4d322e05de05132b28f8ec7e11879a8c5f9e8be39b698e7e7d61

See more details on using hashes here.

Provenance

The following attestation bundles were made for labretriever-1.0.0.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.0.0-py3-none-any.whl.

File metadata

  • Download URL: labretriever-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 114.9 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a66f85a601adf89d22629066dc74e23c47610e645a463d07964c3d0858239eb7
MD5 6e12c392893e0c58c72bb7e43a3bfa30
BLAKE2b-256 072f5de1814ce03d14e0d3a79da98e0c7a806a5ef8898d1a57b2bdf7f2cb5fc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for labretriever-1.0.0-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