Skip to main content
BumbleBee logo

BumbleBeeDB

A compact embedded SQL database, built from scratch in C++20.

Vectorized execution · MVCC transactions · persistent storage · writable Parquet · Python API

CI C++ 20 Python 3.10–3.13 GPLv3 license

BumbleBeeDB is an embedded, in-process relational database for applications, experiments, and learning how a database works end to end. Open an in-memory database or a persistent file, run SQL from Python or the interactive shell, and query ordinary tables alongside Parquet datasets.

Why BumbleBeeDB?

  • Embedded and zero-server — use an ephemeral database or persist everything to one local path.
  • Vectorized and parallel — a chunk-at-a-time, push-based execution engine runs work across a bounded worker pool.
  • Concurrent transactions — MVCC provides independent snapshots, snapshot/serializable isolation, rollback, and write-conflict detection.
  • Parquet-native — attach a directory as a table, infer its schema, prune row groups, skip unused columns, and use INSERT, UPDATE, or DELETE with copy-on-write files.
  • Python-friendly — owning query results, pandas import/export, typed exceptions, and a thread-shareable Database object.
  • Built to explore — a custom binder, planner, optimizer, executor, catalog, buffer manager, and storage engine sit behind a SQL parser based on DuckDB's libpg_query fork.

Quick start with Python

Install BumbleBeeDB from PyPI:

pip install bumblebeedb
pip install pandas  # optional: DataFrame input/output used below
import bumblebeedb as bb
import pandas as pd

sales = pd.DataFrame({
    "sale_id": [1, 2, 3, 4],
    "region": ["Zurich", "Bern", "Zurich", "Bern"],
    "amount": [120.0, 85.5, 64.0, 220.0],
})

with bb.db() as db:  # pass "analytics.bbdb" here to persist the database
    db.load_df(sales, "sales", primary_key="sale_id")  # DataFrame → native table
    summary = db.sql("""
        SELECT region AS region, COUNT(*) AS orders, SUM(amount) AS revenue
        FROM sales
        GROUP BY region
        ORDER BY revenue DESC
    """).to_df()  # query result → new DataFrame

print(summary.to_string(index=False))
region  orders  revenue
  Bern       2    305.5
Zurich       2    184.0

DataFrame inputs are copied into native storage, and every output DataFrame is independent. Row tables always have a primary key. If you do not declare one, BumbleBeeDB adds and fills a generated BIGINT _id column.

Use a connection when multiple statements belong to one transaction:

with bb.db() as database:
    database.sql("CREATE TABLE accounts(id INT PRIMARY KEY, balance INT)")
    database.sql("INSERT INTO accounts VALUES (1, 100), (2, 100)")

    with database.connect() as connection:
        with connection.transaction(isolation="snapshot"):
            connection.sql("UPDATE accounts SET balance = balance - 10 WHERE id = 1")
            connection.sql("UPDATE accounts SET balance = balance + 10 WHERE id = 2")

See the Python examples for persistence, DataFrames, concurrent queries, transactions, Parquet, query plans, and scripts.

Quick start with the SQL shell

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel

# Run one query in memory
./build/BumbleBee -m -c "SELECT 1 + 1 AS answer;"

# Or open the interactive, file-backed shell (uses ./bb.db by default)
./build/BumbleBee

Statements may span several lines and run when a line ends in ;. Type \help for shell commands, use --db <path> to choose a database file, or --memory / -m to keep everything in memory.

Query Parquet like a table

-- Declare a schema, or use an empty column list to infer it from existing files.
CREATE TABLE events (id BIGINT, payload VARCHAR)
WITH (format = 'parquet', location = '/data/events');

INSERT INTO events VALUES (1, 'created'), (2, 'processed');
SELECT payload FROM events WHERE id > 1;

External Parquet writes are copy-on-write and intentionally unavailable inside explicit transactions. DROP TABLE only removes the catalog entry, your Parquet files remain yours.

Project map

Looking for… Start here
Complete Python programs examples/python/
Python API behavior python/API.md
Development conventions DEVELOP.MD
SQL end-to-end test format test/e2e/README.md

License

BumbleBeeDB is available under the GNU General Public License v3.0.

Metadata

Release files for bumblebeedb 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bumblebeedb 0.5.0
File Size Uploaded Provenance Actions
bumblebeedb-0.5.0.tar.gz 6.4 MB With provenance Details for bumblebeedb-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for bumblebeedb 0.5.0
File Actions
bumblebeedb-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details for bumblebeedb-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl
bumblebeedb-0.5.0-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details for bumblebeedb-0.5.0-cp313-cp313-macosx_14_0_arm64.whl
bumblebeedb-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for bumblebeedb-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl
bumblebeedb-0.5.0-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details for bumblebeedb-0.5.0-cp312-cp312-macosx_14_0_arm64.whl
bumblebeedb-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details for bumblebeedb-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl
bumblebeedb-0.5.0-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details for bumblebeedb-0.5.0-cp311-cp311-macosx_14_0_arm64.whl
bumblebeedb-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for bumblebeedb-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl
bumblebeedb-0.5.0-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details for bumblebeedb-0.5.0-cp310-cp310-macosx_14_0_arm64.whl

Total release size: 51.9 MB

Release files / bumblebeedb-0.5.0.tar.gz

Download URL bumblebeedb-0.5.0.tar.gz
Size 6.4 MB
Tags Source
SHA-256 checksum
How to use checksums
48a5453acdc65b96431953c64410e6fb34e248fd74794a0f16ee13b9e6f91858
BLAKE2b-256 checksum
How to use checksums
e961297271cd399e0d221859a4b66a006d7773c3ad3a614302c035a52572d985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL bumblebeedb-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl
Size 5.9 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
13ad047cca62b6f891ac93eb413e2714331549267c36b42ba021ee544b049e59
BLAKE2b-256 checksum
How to use checksums
d2b6afae841d39294b93a8683be3e440b49096cba1ce031e471c542ed65e8e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp313-cp313-macosx_14_0_arm64.whl

Download URL bumblebeedb-0.5.0-cp313-cp313-macosx_14_0_arm64.whl
Size 5.5 MB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
06b7721be358f06098a11acc4b99300c9b23ea5aeef7208ee686c798525b3033
BLAKE2b-256 checksum
How to use checksums
fc99a0d75d5a90a4a75e021d1d65453042b4cfa3e002d2494fa3f3b2fea38a2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL bumblebeedb-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 5.9 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
c14c5a8ab25d6e16f6816653af651ebac5dbf1474b8fc2b568e4ffe02afd02a8
BLAKE2b-256 checksum
How to use checksums
820709fd059e51be5571f947129f1ca62943bf564568e04751a42c938e0a932a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp312-cp312-macosx_14_0_arm64.whl

Download URL bumblebeedb-0.5.0-cp312-cp312-macosx_14_0_arm64.whl
Size 5.5 MB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
cf58b78f18cb1116f083a608548f0085abcafaa40b5b8b6b5a0da8fdeaceb026
BLAKE2b-256 checksum
How to use checksums
984c7abcf2a196e41cc633b4481dbd98dc9759bdbdf3e6a01f5e4cc1b6699a76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL bumblebeedb-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl
Size 5.9 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
6880c55d50e306ab830cb093ed6dac18284823e0fd94dab56fcd0273cf201196
BLAKE2b-256 checksum
How to use checksums
051b1ef41713b87ad609e02b0d302535857dce560a744cbd68e2f91a656485eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp311-cp311-macosx_14_0_arm64.whl

Download URL bumblebeedb-0.5.0-cp311-cp311-macosx_14_0_arm64.whl
Size 5.5 MB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
6b51bc8f63936ac8aac9228233481a2663a10637bd593efea1fb474abaeaad3d
BLAKE2b-256 checksum
How to use checksums
7b543cf3ab57dd2959fe98d6ce9dbf5464633fc3c32c523dbd20992acdb358c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL bumblebeedb-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl
Size 5.9 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
3059b5be77491cb1626f635c337b59c54263559f4a0289d01fd4ad0ef48f29de
BLAKE2b-256 checksum
How to use checksums
75af85ede1fbc1df71fd2c9c46e7860be739347873cf795eb009fbe9871fbfd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / bumblebeedb-0.5.0-cp310-cp310-macosx_14_0_arm64.whl

Download URL bumblebeedb-0.5.0-cp310-cp310-macosx_14_0_arm64.whl
Size 5.5 MB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
5cc762384807cc7080b92d402084da44a50eecea54b4c8795b2fd4fdc2ffc79f
BLAKE2b-256 checksum
How to use checksums
0b24bb152a42ce92470a8cad813fd4ad3e00a25bb64f74caffa143cb261a2692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Security for bumblebeedb 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for bumblebeedb-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

9 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page