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
pip install labretriever
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file labretriever-0.5.0.tar.gz.
File metadata
- Download URL: labretriever-0.5.0.tar.gz
- Upload date:
- Size: 100.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41a1d545c5ca37f626d7f86653ec0e3a080dbbbdc44de2b71e37186b5046d6b7
|
|
| MD5 |
4301f8257f4f36bc598e780a4c9af92f
|
|
| BLAKE2b-256 |
fcfeb80de6ac7e54a1621737d7c9994fcaa3adbc0704ea75b7ec8174f96f5a91
|
Provenance
The following attestation bundles were made for labretriever-0.5.0.tar.gz:
Publisher:
publish.yml on cmatKhan/labretriever
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
labretriever-0.5.0.tar.gz -
Subject digest:
41a1d545c5ca37f626d7f86653ec0e3a080dbbbdc44de2b71e37186b5046d6b7 - Sigstore transparency entry: 1478409612
- Sigstore integration time:
-
Permalink:
cmatKhan/labretriever@3cc9ff6c95e28f799205766ca9c4ad2f0ea67469 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/cmatKhan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3cc9ff6c95e28f799205766ca9c4ad2f0ea67469 -
Trigger Event:
release
-
Statement type:
File details
Details for the file labretriever-0.5.0-py3-none-any.whl.
File metadata
- Download URL: labretriever-0.5.0-py3-none-any.whl
- Upload date:
- Size: 109.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fed4dd4140e5d8daa734a0298616b0c7b17c4c2e1f193e2e130fcd31a2f8dc73
|
|
| MD5 |
1cdc8b5ecec5091c9b876f61d3292cee
|
|
| BLAKE2b-256 |
b65ffaa0fa94810344a441c4aba8b6ec2786b47917946f0f04de027d5e9b7ccf
|
Provenance
The following attestation bundles were made for labretriever-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on cmatKhan/labretriever
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
labretriever-0.5.0-py3-none-any.whl -
Subject digest:
fed4dd4140e5d8daa734a0298616b0c7b17c4c2e1f193e2e130fcd31a2f8dc73 - Sigstore transparency entry: 1478409746
- Sigstore integration time:
-
Permalink:
cmatKhan/labretriever@3cc9ff6c95e28f799205766ca9c4ad2f0ea67469 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/cmatKhan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3cc9ff6c95e28f799205766ca9c4ad2f0ea67469 -
Trigger Event:
release
-
Statement type: