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

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.21.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.21-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csrd_repository-0.5.21.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.21.tar.gz
Algorithm Hash digest
SHA256 b4699f90430c7784ed8bfc5edd45f439d8074aa0f156b8d9edb71e48679714fb
MD5 f60b7e8c36d606e6cc47120f10689c65
BLAKE2b-256 6ce8cdacaa031f88d361adaa0e4c47f066bc4b04d62e9cd860b8a5b3cd481cfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_repository-0.5.21.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.21-py3-none-any.whl.

File metadata

File hashes

Hashes for csrd_repository-0.5.21-py3-none-any.whl
Algorithm Hash digest
SHA256 5460cfd2fd917971a50d5d8ebca9c93a8b7dba2dbe425a234f5fbc27d1715b8e
MD5 46df6770a50ca64ac959f6d99c9723c4
BLAKE2b-256 72f4df7a30445de1ab5401c4e2ce02dcbc0e62f2d5b6b389b30390fbb153deb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_repository-0.5.21-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