beaver is a simple, local, and embedded database designed to manage complex, modern data types without requiring a database server, built on top of SQLite.
Design Philosophy
beaver is built with a minimalistic philosophy for small, local use cases where a full-blown database server would be overkill.
- Minimal Dependencies: The core library depends on
aiosqlite,numpy,pydantic,richandtyper. The HTTP server and encryption are optional extras. - Safe Concurrency: Thread-safe and multi-process-safe, with inter-process locks stored in the file.
- Local-First: A single, portable SQLite file is the default.
- Standard SQLite: The database file is a standard SQLite file that any SQLite tool can open.
- Pythonic API: Designed to feel like a natural extension of your code, using standard Python data structures and Pydantic models.
Installation
pip install beaver-db # the core
pip install "beaver-db[full]" # plus encryption and the HTTP server
Documentation
The guide at beaver.syalia.com/docs follows one small project, a bike shop's support desk, from a dictionary of settings to the whole helpdesk on several machines. Every code block in it runs against the package when the site is built. One chapter per need:
- Settings that survive a restart:
BeaverDBand dictionaries. - Typed records, hashed passwords, encryption and expiring keys.
- Ordered lists and priority queues shared by workers.
- Locks across processes.
- Full-text and fuzzy search with filters, vector search and graphs.
- Blobs, and exporting a collection.
- Time-indexed logs, channels and event callbacks, and probabilistic sketches.
- The async engine and transactions, the HTTP server and client, and typing your code against the protocols.
- Migrating a 1.x file, the whole helpdesk in one program, and how beaver is built.
The programs of each chapter are in docs/examples/.
Contributing
Contributions are welcome! If you think of something that would make beaver more useful for your use case, please open an issue or submit a pull request.
License
This project is licensed under the MIT License.
Metadata
Release files for beaver-db 2.5.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 | Provenance | Actions |
|---|---|---|---|---|
| beaver_db-2.5.0.tar.gz | 1.1 MB | Without provenance | Details for beaver_db-2.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beaver_db-2.5.0-py3-none-any.whl | Python 3 | none | any | Details for beaver_db-2.5.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / beaver_db-2.5.0.tar.gz
| Download URL | beaver_db-2.5.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ed1d0df8aa5512b0db99702a10d9865d4b2b429017839aae5b788ec92bc5b01
|
|
BLAKE2b-256 checksum How to use checksums |
3b418b2a636a4aa4b65b1e5fd836fc93cddb22594abcad241d744fb80bb2aed0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / beaver_db-2.5.0-py3-none-any.whl
| Download URL | beaver_db-2.5.0-py3-none-any.whl |
|---|---|
| Size | 88.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd4408be1866bb33f3bbbe3450a16c07128fda4f5b606fba069219adfa0478d3
|
|
BLAKE2b-256 checksum How to use checksums |
22b95d13bb88d746968cd9aea84840fb9617cf9c52dc722150bb0751dff68031
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for beaver-db 2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.