Reusable Python base classes for effortless CRUD repositories.
Project description
subarashii
Subarashii is a lightweight Python library that provides generic CRUD repository classes built on top of SQLAlchemy.
Its goal is to reduce boilerplate by offering reusable, type-safe repository implementations for common database operations.
Features
- Generic CRUD repository pattern
- Built with SQLAlchemy ORM
- Type-safe using Python Generics
- Simple and extensible design
- Custom exceptions for common error cases
Requirements
- Python 3.12+
- SQLAlchemy 2.0+
- uv package manager
Core Concept
Subarashii provides a base CRUDRepository class that can be reused for any SQLAlchemy model.
It includes the following operations out of the box:
saveget_allget_by_idget_byupdatedeletecountexists_by_id
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 subarashii-0.1.0.tar.gz.
File metadata
- Download URL: subarashii-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 |
d503604fb7ac809dadc51c32d8739dce108cb97836ae2474d7f78851f3998b78
|
|
| MD5 |
11f68c5ade8f986099894fc87a5b51f5
|
|
| BLAKE2b-256 |
6f90e7f57b8a1b53606ab808639cf2f563c68acced09a94764303799e892e4d1
|
File details
Details for the file subarashii-0.1.0-py3-none-any.whl.
File metadata
- Download URL: subarashii-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 |
8a0f93d03d6e661295fed806ab0ce885c95bea2b6518811924eeb05ac8282f0d
|
|
| MD5 |
ebd8e51254f56f228ed7de2883d59a46
|
|
| BLAKE2b-256 |
9cf844e48a411d253a6c411d8c93676beb18a7f82184560be1881443876b1894
|