Add your description here
Project description
sapling
installation
pip install sapling-db
overview
simple, zero-setup persistence for pydantic models
from pydantic import BaseModel
from sapling import Database
class User(BaseModel):
name: str
email: str
db = Database()
with db.transaction() as txn:
user = User(name="alice", email="alice@example.com")
doc = txn.put(User, "123", user)
txn.fetch(User, "123")
features:
- fully typed - complete type safety with ide autocomplete and type checking
- zero setup - works out of the box with no configuration
- pydantic native - designed specifically for pydantic models
- fastapi ready - seamless dependency injection for request-scoped transactions
- sqlite backed - solid, battle-tested storage
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
sapling_db-0.1.0.tar.gz
(7.4 kB
view details)
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 sapling_db-0.1.0.tar.gz.
File metadata
- Download URL: sapling_db-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e3ec131220fdfcc5ce64ddc51c27b5f6037ab495c6c4ab179f0e5825352949
|
|
| MD5 |
1dc669471ccc1c411c1008f7bca30e86
|
|
| BLAKE2b-256 |
42e527758d854e7d69f385ad52a4d9a8723cba54346a0b16d01bc9fcd69f1e63
|
File details
Details for the file sapling_db-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sapling_db-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa0fe7f91887c2d7c32eee94f64463140b6a9312ef945140db5a3bf2b4ab1f71
|
|
| MD5 |
aba7084dfb4690f024516bf4c86fcfef
|
|
| BLAKE2b-256 |
102fece0f22a8e375ed0346e8dcc13c511e4cec023e912f9c2616aacb8c254e8
|