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.17.0.tar.gz
(328.3 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
File details
Details for the file lidb-2026.7.17.0.tar.gz.
File metadata
- Download URL: lidb-2026.7.17.0.tar.gz
- Upload date:
- Size: 328.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d6d5ba7903f3a340eb40dc12422423c0ff5b7997271a5dda816d7235ac72fd2
|
|
| MD5 |
557c6294c8f7e747fea01e046effaf33
|
|
| BLAKE2b-256 |
3e18c3bf023f1efd3e4e94fbe4e9fce6db6ee2188e8959a214beea8ff5c67703
|
File details
Details for the file lidb-2026.7.17.0-py3-none-any.whl.
File metadata
- Download URL: lidb-2026.7.17.0-py3-none-any.whl
- Upload date:
- Size: 62.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7aefdeea4845be218b46001b8226e874cbf5b1b43d3c0a073e69e91e81c0fb77
|
|
| MD5 |
037abe5af80221888f747ccb8ca73de6
|
|
| BLAKE2b-256 |
52b8914562ec0fb9f91d52e58f4f41eb3a1e8198f942aee9b8a4cb15019f16bd
|