lidb
lidb is a lightweight quant data processing library (Light Database for Quantor), providing dataset management with dependency tracking, topological scheduling, and partitioned parquet storage.
Features
- Dataset management with dependency tracking and automatic backfill
- Topological DAG scheduler — dependency graph → layer-parallel execution
- Full-cache fast path — scan-only when all dates cached, skip scheduler
@dataset()decorator — convert functions to Dataset objects- Hive-style partition storage (date=xxx/asset=xxx/data.parquet)
- Expression engine (QDF) for factor computation
Installation
# PyPI(发布版本)
pip install lidb
# GitHub(最新开发版本)
pip install -e "lidb @ git+ssh://git@github.com/link-yundi/lidb.git"
Documentation
See API Documentation for detailed usage.
Quick Start
import lidb
import polars as pl
# Define a dataset via @dataset() decorator
@lidb.dataset(update_time="15:00:00")
def my_dataset(date: str):
return pl.DataFrame(
{"date": [date], "time": ["15:00:00"], "asset": ["000001"], "value": [1.0]}
)
# Get data
data = my_dataset.get_value("2024-01-01")
# Load datasets into a new Zoo workspace
zoo = lidb.load(
beg_date="2024-01-01",
end_date="2024-01-31",
times=["15:00:00"],
ds_list=[my_dataset],
)
License
MIT License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lidb-2026.7.15.1.tar.gz
(358.1 kB
view details)
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
lidb-2026.7.15.1-py3-none-any.whl
(370.5 kB
view details)
File details
Details for the file lidb-2026.7.15.1.tar.gz.
File metadata
- Download URL: lidb-2026.7.15.1.tar.gz
- Upload date:
- Size: 358.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9b21fec74843f70434f3098a2cb643e516535e368a21b598af7c75337b4d8f
|
|
| MD5 |
51653ecb0dc443ad72eeac12a33832bc
|
|
| BLAKE2b-256 |
899acf3f875b08b4b804f5326c3eaaa9d97e4a7d9d0d34e5f82bded2bc6bdb38
|
File details
Details for the file lidb-2026.7.15.1-py3-none-any.whl.
File metadata
- Download URL: lidb-2026.7.15.1-py3-none-any.whl
- Upload date:
- Size: 370.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeefe6b65d8159f90de13f1d95fbcd69934bdc7ea4ec1a25f9c687ed18759f95
|
|
| MD5 |
2dbc56780af8589acf888797bc285cc5
|
|
| BLAKE2b-256 |
832e487e1058f1057bbbb5bbd49d0c17958ae97a1d88f4ab0441e4cc9b3de8c5
|