Skip to main content

KytoDB

PyPI - Downloads PyPI - Version Rye

A simple, easy-to-use Pydantic embedded database library

KytoDB is designed to provide a simple and easy-to-use persistence layer for Pydantic models. KytoDB leverages RocksDB as the underlying storage engine.

from kytodb import KytoDbClient, IdModel

class User(IdModel):
    name: str
    email: str

client = KytoDbClient(db_path="app-database")
users = client.collection(User, "users")

new_user = User(name="John Doe", email="john.doe@example.com")
user_id = users.add(new_user)

retrieved_user = users.get(user_id)
print(retrieved_user)

Installation

Install the library using pip:

pip install kytodb

Development

KytoDB uses Rye for dependency management and the development workflow. To get started with development, ensure you have Rye installed and then clone the repository and set up the environment:

git clone https://github.com/MatthewScholefield/fastapi-sse.git
cd fastapi-sse
rye sync
rye run pre-commit install

# Run tests
rye test

Metadata

Release files for kytodb 0.2.1

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

Source distribution (sdist)

Source distribution for kytodb 0.2.1
File Size Uploaded
kytodb-0.2.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kytodb 0.2.1
File Interpreter ABI Platform
kytodb-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / kytodb-0.2.1.tar.gz

Download URL kytodb-0.2.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6882b09cb591dcc62fad8b69e4427e8a0d2da1afd926274af0f72f3d1614f74c
BLAKE2b-256 checksum
How to use checksums
5d4ba25fb838ea5f83f77413587470892162a9b8e0e853b44f8b852686b054dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release files / kytodb-0.2.1-py3-none-any.whl

Download URL kytodb-0.2.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c3f1a5ffc640fdd94f7be07789db064f4a42dbbb981fff7abbc05d6b68a9ac5
BLAKE2b-256 checksum
How to use checksums
e97a39282822eff5877b75e464095bd6f4adefd8e394d53cd5e55b50b19ab829
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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