Skip to main content

A base repository for FastAPI projects, inspired by Ruby on Rails' Active Record and Ransack.

Project description

FastAPI Repository

A base repository for FastAPI projects, inspired by Ruby on Rails' Active Record and Ransack.

Installation

pip install fastapi-repository

Usage

from fastapi_repository import BaseRepository
from sqlalchemy.ext.asyncio import AsyncSession
from .models import User

class UserRepository(BaseRepository):
    def __init__(self, session: AsyncSession):
        super().__init__(session, model=User)

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

fastapi_repository-0.0.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

fastapi_repository-0.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_repository-0.0.1.tar.gz.

File metadata

  • Download URL: fastapi_repository-0.0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for fastapi_repository-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c2fee93c52c2e87fe83eaf5a08ad7fb8127cbcd3b6bb17bb522b06d474cb09a4
MD5 df743cfec99d67781e14bce4d8e489d1
BLAKE2b-256 94c1bc9d64b8d7c7c7feb01c2c8f3f29ed79adbf68809039a67f88944a2bc36f

See more details on using hashes here.

File details

Details for the file fastapi_repository-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_repository-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4045211b296d94024ff76b1104a13c4c162998a8579a363d0cfbe16fe5abe3e
MD5 da2f6e55ca0b9418bc1cd5ee6a7e6519
BLAKE2b-256 edd675408b7e830701895fe83f08b15fba9c35c7dc9dc8a57e14572b077607b3

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