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.2.tar.gz (6.4 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.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for subarashii-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d9b2f6686e7db5a326fd8659be1cd6942ef3c7215436ee2d4ef2b675538311f4
MD5 a2a5b53491c52c0df65e793c7f141b07
BLAKE2b-256 ff00694f3a6aa52fddbae701a9f73cd8823a69c803dcbe6b6ed3225ea4370725

See more details on using hashes here.

File details

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

File metadata

  • Download URL: subarashii-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a4f3f1eb814e8c7c1aa3c1edb3b27968753323e1ff86079ae1da69204bc8252
MD5 ef50577116ec63e5b59f7f5871299345
BLAKE2b-256 a99bf1614a2afbf450463ca59f064c8d6bfe05d8505a83a8520f40d901f39893

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