No project description provided
Project description
DeltaBase is a lightweight, comprehensive solution for managing Delta Tables in both local and cloud environments. Built on the high-performance frameworks polars and deltalake, DeltaBase streamlines data operations with features like upsert, delete, commit, and version control. Designed for data engineers, analysts, and developers, it ensures data consistency, efficient versioning, and seamless integration into your workflows.
Setup
To install deltabase, run the following command:
pip install deltabase
Usage
from deltabase import delta
# connect to a delta source
db:delta = delta.connect(path="mydelta")
# upsert records into a table
db.upsert(table="mytable", primary_key="id", data=[
{"id": 1, "name": "alice"}
])
# commit table to delta source
db.commit(table="mytable")
# read records from sql context
result = db.sql("select * from mytable")
print(result) # output: [{"id": 1, "name": "alice"}]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deltabase-0.3.1.tar.gz
(16.6 kB
view details)
Built Distribution
deltabase-0.3.1-py3-none-any.whl
(17.5 kB
view details)
File details
Details for the file deltabase-0.3.1.tar.gz
.
File metadata
- Download URL: deltabase-0.3.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8acaf00997bb9ea541f53d39e3871b3ff34ca8791bf71691c54e93d45e8bf6e |
|
MD5 | 34326aa040fc2785ada5a968a1e268fc |
|
BLAKE2b-256 | c8acbcebbe6c88925a8e4cb60b421f47f3b426abc1b1e4ed0306e2faec80eddc |
File details
Details for the file deltabase-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: deltabase-0.3.1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 436f85220e3c7b93ed4009322c00688e2920cb8f1fcda8f5c1199422733bdde1 |
|
MD5 | 9a3baec4efcc0cc4822f4e8b17d83f7b |
|
BLAKE2b-256 | 7cad87b462b6ecd9b33550dc763e840e6add49cf2dabe537cfc2ab6ad3974dd6 |