一個原生 Rust 程式庫,用於 Delta Lake,提供 Python 綁定。
AI 翻譯
A native Rust library for Delta Lake, with bindings into Python
資料Rust · PythonGitHub @delta-io自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗The Delta Lake project aims to unlock the power of the Deltalake for as many users and projects as possible by providing native low-level APIs aimed at developers and integrators, as well as a high-level operations API that lets you query, inspect, and operate your Delta Lake with ease.
| Source | Downloads | Installation Command | Docs |
|---|---|---|---|
| PyPi | pip install deltalake | Docs | |
| Crates.io | cargo add deltalake | Docs |
The deltalake library aims to adopt patterns from other libraries in data processing,
so getting started should look familiar.
from deltalake import DeltaTable, write_deltalake
import pandas as pd
# write some data into a delta table
df = pd.DataFrame({"id": [1, 2], "value": ["foo", "boo"]})
write_deltalake("./data/delta", df)
# Load data from the delta table
dt = DeltaTable("./data/delta")
df2 = dt.to_pandas()
assert df.equals(df2)
The same table can also be loaded using the core Rust crate:
use deltalake::{open_table, DeltaTableError};
use url::Url;
#[tokio::main]
async fn main() -> Result<(), DeltaTableError> {
// open the table written in python
let delta_path = Url::from_directory_path("/abs/data/delta").unwrap();
let table = open_table(delta_path).await?;
// show all active files in the table
let files: Vec<_> = table.get_file_uris()?.collect();
println!("{files:?}");
Ok(())
}
You can also try Delta Lake in Docker at DockerHub | Docker Repo
The delta-rs team is committed
to providing a welcoming community.
Libraries and frameworks that interoperate with delta-rs - in alphabetical order.
View the complete feature table.