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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2fee93c52c2e87fe83eaf5a08ad7fb8127cbcd3b6bb17bb522b06d474cb09a4
|
|
| MD5 |
df743cfec99d67781e14bce4d8e489d1
|
|
| BLAKE2b-256 |
94c1bc9d64b8d7c7c7feb01c2c8f3f29ed79adbf68809039a67f88944a2bc36f
|
File details
Details for the file fastapi_repository-0.0.1-py3-none-any.whl.
File metadata
- Download URL: fastapi_repository-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4045211b296d94024ff76b1104a13c4c162998a8579a363d0cfbe16fe5abe3e
|
|
| MD5 |
da2f6e55ca0b9418bc1cd5ee6a7e6519
|
|
| BLAKE2b-256 |
edd675408b7e830701895fe83f08b15fba9c35c7dc9dc8a57e14572b077607b3
|