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
kytodb-0.1.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file kytodb-0.1.0.tar.gz
.
File metadata
- Download URL: kytodb-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9243fd411baf092ef5c595e8888cacb21582c8ab5a7e8c1bdb780cfb7c6dc363 |
|
MD5 | 47029fd1ac16691137ec57d6da1f0a32 |
|
BLAKE2b-256 | f1c084697abff3606c1a6c7ab304a48b92eb755a06827b2ad6d03567a676961d |
File details
Details for the file kytodb-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: kytodb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4557ab0881ab9eaa0fb0bb420739473e46ce3506c7217c4981b571d18be1f306 |
|
MD5 | 31da73bdf6da1a61d03470f712697918 |
|
BLAKE2b-256 | 761d4d2709b31d1ec90f4ec347b50f783a9a08bddc3e84e4b40697fec2c090c4 |