Skip to main content

No project description provided

Project description

banner

documentation (wip)

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"}]

Magic

deltabase provides magic for Jupyter Notebooks to allow for seamless transitions between python, sql, and ai. (see example)

Project details


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.11.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

deltabase-0.11.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file deltabase-0.11.0.tar.gz.

File metadata

  • Download URL: deltabase-0.11.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.2 Darwin/23.4.0

File hashes

Hashes for deltabase-0.11.0.tar.gz
Algorithm Hash digest
SHA256 7abf33e20ca50740dc9868cec4dfda8d86e458b1615e691fb66ae5b8371cbc83
MD5 58df9e4fdab728d935505b7de1271be6
BLAKE2b-256 0ab0ca10a594ec0576a8f956d2c5289d2d681c45b10d00fdfc4c478a1a70bb83

See more details on using hashes here.

File details

Details for the file deltabase-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: deltabase-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 21.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

Hashes for deltabase-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 500cc9f353f8556be40462ef3869eb9c728e24e1839b88fce8e56483d6ee4ed0
MD5 004e3dcfc17d756b3d8a85a7bdb1eac0
BLAKE2b-256 61e612840f8f5ef82b79ada05f02fe67f5bf9255d567b017a7ce91f0bb871ff5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page