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
Metadata
Release files for lidb 2026.9.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lidb-2026.9.15.0.tar.gz | 352.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lidb-2026.9.15.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 419.9 kB
Release files / lidb-2026.9.15.0.tar.gz
| Download URL | lidb-2026.9.15.0.tar.gz |
|---|---|
| Size | 352.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d24b4d7e67317f72c51f85cbe3b9e832f8559294ff388107e44d68584a3512ec
|
|
BLAKE2b-256 checksum How to use checksums |
dce10c2386d22feab3cb47782ed7e54961bdcea805a6a16b292c74b4d95ca20c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.21
|
Release files / lidb-2026.9.15.0-py3-none-any.whl
| Download URL | lidb-2026.9.15.0-py3-none-any.whl |
|---|---|
| Size | 67.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7277f2aa535e6d07444c4ce2cf96675b7ed37f214382a82994d2aa981ded7360
|
|
BLAKE2b-256 checksum How to use checksums |
4070b8a81ea5fdde184e0ee0fcd8049b89a4cde2bf5919dff99628de670357cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.21
|