Observed since 20 Oct, 17:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Shared base repository and service utilities for SQLAlchemy-backed FastAPI apps.
A powerful and flexible base repository and service utilities package for SQLAlchemy-backed FastAPI applications.
Repository Core provides a set of base classes and utilities to help you implement clean and maintainable repository and service patterns in your FastAPI applications. It's designed to work seamlessly with SQLAlchemy and follows best practices for database operations and business logic separation.
pip install repository-core
from repository_core.models import BaseModel
class User(BaseModel):
__tablename__ = "users"
email = Column(String, unique=True, nullable=False)
name = Column(String)
from repository_core.repository import BaseRepository
from repository_core.models import BaseModel
class UserRepository(BaseRepository):
def __init__(self, session):
super().__init__(session, User) #Access all the methods of base-repository
# Add custom repository methods here
async def get_by_email(self, email: str) -> Optional[User]:
return await self.get_one(User.email == email)
from repository_core.services import BaseService
class UserService(BaseService):
def __init__(self, repository: UserRepository):
super().__init__(repository)
# Add custom service methods here
async def create_user(self, data: UserCreate) -> User:
return await self.create(data)
repository_core/
├── models/ # Base model classes
├── repository/ # Base repository implementations
├── services/ # Base service implementations
├── schemas/ # Pydantic schemas
├── exceptions/ # Custom exceptions
└── utils/ # Utility functions
This project is licensed under the MIT License - see the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.5.0 | 10 Apr 2026 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:aef8920c3b06ef5c0ff0a9144028757274c2cfce0f6dbe73bf54e8b4177cfc60