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.2.0.tar.gz (11.1 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.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csrd_repository-0.2.0.tar.gz
  • Upload date:
  • Size: 11.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 64bc7fb4255dd3271ff0d6cecf63861307a586cfa92f8c0fe8eaca9cf9871125
MD5 a9c6f940cd5f79fa9d1a3164414bad16
BLAKE2b-256 c8b01cdc0a0a5f0e64861614e2a46f03c05b5d68ab0539507dbaf8a5dd78fe82

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: csrd_repository-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for csrd_repository-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 399aabdbbdec40056b7180dab9797dbf32bff7c508723dff96ffe70aecb9d0ed
MD5 2c91fb6d799e35441d1ba7d9c7ced910
BLAKE2b-256 85948c343aaa4093a4efd4b9e93ba2df0ab639d27bd5d27ffb1011026e62d72d

See more details on using hashes here.

Provenance

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