Better-crud

Latest version: v0.1.2

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.2

- Some design refactoring
- Remove the crud_get_many parameters criteria, options, joins

0.1.1

Features
- Add some parameters to crud_get_many method
- **criterions** embedded query criteria
- **options** load options
- **joins** relationship Joins
python
joins = [(UserProfile, UserProfile.id == User.profile_id)]
options = [joinedload(User.profile), joinedload(User.roles)]
criterions = [UserProfile.gender == "female"]
fetched_records = await user_service.crud_get_many(
test_request,
joins=joins,
criterions=criterions,
options=options,
db_session=async_session
)

0.1.0

Added
- Keep the s and filter query conditions not mutually exclusive and can be run in parallel

0.0.9

Added
- query filter support lambda function,it can realize the purpose of query condition transformation
python
crud(
user_router,
feature="user",
query={
"filter": lambda x: {"$and": [*x["$and"], {
"is_active": True,
}]}
},
serialize={
"base": UserPublic,
}
)

0.0.8

fix issues:
- routes options **only** set to empty list does not take effect
python
crud(
user_router,
routes={
"only": []
}
)

0.0.7

fix issues:

1. Support model alias in nested relationship

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.