Skip to main content

Rust-powered embedded database for Python with optional MemPalace AI memory

Project description

🦀 RSN DB 🦀

A Rust-powered embedded database with a personality.

PyPI version rust python license


Setup & Installation

Get up and running in seconds. RSN DB is a single package with everything baked in.

RSN DB Setup
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 bincode for 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.

RSN DB Usage

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?"))

Built with 🦀 by Enderchefcoder

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

rsn_db-0.4.2.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rsn_db-0.4.2-cp312-cp312-manylinux_2_34_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Hashes for rsn_db-0.4.2.tar.gz
Algorithm Hash digest
SHA256 193df6a45ac7f23db092244ad4e4cca165c630535e2d4a9a4adb3b027b42b28f
MD5 c21cd52f2814eacf86fc558e5f8594f3
BLAKE2b-256 28b0eb32ec1abd306da5297c153850c325eb58fd059c75438e06048b6d3b053e

See more details on using hashes here.

File details

Details for the file rsn_db-0.4.2-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for rsn_db-0.4.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0964dee85f4be69e351e4e374357f915fb5dce225f6cb57395d20f0b9070ffbf
MD5 b65bfcd4b0ea591af856bafc69278212
BLAKE2b-256 2357449119feca0c569ba6906fe2f948fb72327a915545b93d9c628ce4808613

See more details on using hashes here.

Supported by

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