A simple, easy-to-use Pydantic embedded database library
Project description
KytoDB
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
Project details
Release history Release notifications | RSS feed
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 kytodb-0.2.0.tar.gz.
File metadata
- Download URL: kytodb-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7c258ea840801c6246b28f4a488811b899624e1d2587b6def777b9ccb1f7e3e
|
|
| MD5 |
84ccd344566e38eade73f8102e0795be
|
|
| BLAKE2b-256 |
77649cae58517c2dc4aa984c21fea0280e16000983058ea9db07be5566b5a64a
|
File details
Details for the file kytodb-0.2.0-py3-none-any.whl.
File metadata
- Download URL: kytodb-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15b9219aa6b7673a30424d5643839cc0590590f12fb64b10924649a7f5f9efa5
|
|
| MD5 |
19b87048d03c31faddbb809822dea080
|
|
| BLAKE2b-256 |
4a4bb623a496cd29f38f33e926332535d550cccf192cb29262673e50df245ade
|