Skip to main content

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

Project description

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

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

kytodb-0.2.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

kytodb-0.2.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file kytodb-0.2.1.tar.gz.

File metadata

  • Download URL: kytodb-0.2.1.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

Hashes for kytodb-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6882b09cb591dcc62fad8b69e4427e8a0d2da1afd926274af0f72f3d1614f74c
MD5 6916c57093728dae7f79dd12cf9c6eb6
BLAKE2b-256 5d4ba25fb838ea5f83f77413587470892162a9b8e0e853b44f8b852686b054dc

See more details on using hashes here.

File details

Details for the file kytodb-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: kytodb-0.2.1-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

Hashes for kytodb-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c3f1a5ffc640fdd94f7be07789db064f4a42dbbb981fff7abbc05d6b68a9ac5
MD5 02156cad24e96ff460f43827fdf9612d
BLAKE2b-256 e97a39282822eff5877b75e464095bd6f4adefd8e394d53cd5e55b50b19ab829

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