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
Metadata
Release files for sapling-db 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sapling_db-0.1.0.tar.gz | 7.4 kB | Without provenance | Details for sapling_db-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sapling_db-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sapling_db-0.1.0-py3-none-any.whl |
Total release size: 18.2 kB
Release files / sapling_db-0.1.0.tar.gz
| Download URL | sapling_db-0.1.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2e3ec131220fdfcc5ce64ddc51c27b5f6037ab495c6c4ab179f0e5825352949
|
|
BLAKE2b-256 checksum How to use checksums |
42e527758d854e7d69f385ad52a4d9a8723cba54346a0b16d01bc9fcd69f1e63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / sapling_db-0.1.0-py3-none-any.whl
| Download URL | sapling_db-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa0fe7f91887c2d7c32eee94f64463140b6a9312ef945140db5a3bf2b4ab1f71
|
|
BLAKE2b-256 checksum How to use checksums |
102fece0f22a8e375ed0346e8dcc13c511e4cec023e912f9c2616aacb8c254e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for sapling-db 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.