Skip to main content

Base repository and database adapter abstractions

Project description

csrd-repository

Base repository and database adapter abstractions for FastAPI microservices.

Package: csrd.repository · Import: from csrd.repository import BaseRepository, SQLiteAdapter

What's included

  • BaseRepository — abstract repository with model parsing (requires an adapter)
  • ABCDatabaseAdapter / DBProtocol — async database adapter abstraction with lifecycle (connect() / close() / async with)
  • SQLiteAdapter — async SQLite implementation via aiosqlite (persistent connection, atomic upsert)
  • ExecuteResult — immutable snapshot of query metadata (replaces raw cursor return)
  • Optional sqlalchemy integration for query building (pip install csrd-repository[sql])

Installation

uv pip install "csrd-repository @ git+ssh://git@github.com/csrd-api/fastapi-common.git#subdirectory=packages/repository"

Dependencies

  • csrd-models (Tier 2)

Project details


Release history Release notifications | RSS feed

This version

0.5.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csrd_repository-0.5.7.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

csrd_repository-0.5.7-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file csrd_repository-0.5.7.tar.gz.

File metadata

  • Download URL: csrd_repository-0.5.7.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for csrd_repository-0.5.7.tar.gz
Algorithm Hash digest
SHA256 7a7c2c9935add1cc75f14bf810ffc23c01b5b147bb172a833c74d93cd62ab8aa
MD5 64bba1432d07222aaf247677ff5f3b32
BLAKE2b-256 174e10328089f96776d304c79687640cff2937e2d6a3312ddd35b1f9cd0da040

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_repository-0.5.7.tar.gz:

Publisher: release.yml on csrd-api/fastapi-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file csrd_repository-0.5.7-py3-none-any.whl.

File metadata

File hashes

Hashes for csrd_repository-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d3dc5b055d7c2e6ba7b79e7dbeac6218f4974d835b992d79c695f97b759a7c
MD5 32b6840fc0d6ba75a4021f7ebb8e2237
BLAKE2b-256 fbc64703788373b8779ab5e7c0122c642e6d848ddc27eab614e278105f63dc50

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_repository-0.5.7-py3-none-any.whl:

Publisher: release.yml on csrd-api/fastapi-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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