Skip to main content

Reusable Python base classes for effortless CRUD repositories.

Project description

subarashii

Publish to PyPI

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

Installing

Run:

uv add subarashii

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:

  • save
  • get_all
  • get_by_id
  • get_by
  • update
  • delete
  • count
  • exists_by_id

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

subarashii-1.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

subarashii-1.1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file subarashii-1.1.1.tar.gz.

File metadata

  • Download URL: subarashii-1.1.1.tar.gz
  • Upload date:
  • Size: 6.1 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

Hashes for subarashii-1.1.1.tar.gz
Algorithm Hash digest
SHA256 6b3b485a82242ad7c9ea4c9206fb1abc2a1f363ac933a5570d9d45ce12dd6dee
MD5 b76a95b077abb238998c586f51d34ee2
BLAKE2b-256 e01a85543170b2341ab9a65b1a11545815f771a0c7359f237fb8e03a1c2ee53a

See more details on using hashes here.

File details

Details for the file subarashii-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: subarashii-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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

Hashes for subarashii-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8875cf3fde9074d226579895ebac57404f72fed1e262c184e9d6a27a6c17e546
MD5 bf2d894a2a9482d3c0f52958b386e46f
BLAKE2b-256 1f29ff6428373868f37d2a4a2de3e8ab29731ac6b9387c8d84d1735e2b42a620

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