Rust-powered embedded database for Python with optional MemPalace AI memory
Project description
Setup & Installation
Get up and running in seconds. RSN DB is a single package with everything baked in.
pip install rsn_db
Features
- Safety: AES-GCM Encryption, Zstd Compression, and SHA-256 Checksums.
- CLI: A powerful REPL with syntax highlighting (simulated) and natural language queries.
- GraphRAG: Built-in knowledge retrieval engine without the LLM overhead.
- Speed and Optimization: Powered by Rust, utilizing
bincodefor O(1) serialization and optimized indexes.
Interactive Session
Watch RSN DB in action. Here we use the Snarky mode to create a table, insert data, and run a query.
Quickstart
Python Library
The library is "all business"—no snark, just performance.
from rsn_db import Database
# Initialize with encryption
db = Database(storage_path="data.rsn", encryption_key="super-secret")
db.save() # flush to disk
CLI
Just run rsn to start the interactive shell.
rsn
Security & Safety
RSN DB is built with a security-first mindset:
- Encryption at Rest: AES-256-GCM for all data.
- Integrity: SHA-256 checksums on every block.
- Path Guard: Blocks absolute paths and directory traversal.
- DoS Protection: Strict limits on batch sizes and recursion depth.
GraphRAG (New in v0.2.x)
Ingest unstructured text and query relationships directly.
db.ingest("RSN DB was created by a team of caffeinated engineers.", source="engineers_doc")
print(db.graph_query("Who created RSN DB?"))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rsn_db-0.4.2.tar.gz.
File metadata
- Download URL: rsn_db-0.4.2.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
193df6a45ac7f23db092244ad4e4cca165c630535e2d4a9a4adb3b027b42b28f
|
|
| MD5 |
c21cd52f2814eacf86fc558e5f8594f3
|
|
| BLAKE2b-256 |
28b0eb32ec1abd306da5297c153850c325eb58fd059c75438e06048b6d3b053e
|
File details
Details for the file rsn_db-0.4.2-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rsn_db-0.4.2-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0964dee85f4be69e351e4e374357f915fb5dce225f6cb57395d20f0b9070ffbf
|
|
| MD5 |
b65bfcd4b0ea591af856bafc69278212
|
|
| BLAKE2b-256 |
2357449119feca0c569ba6906fe2f948fb72327a915545b93d9c628ce4808613
|