Releases: python-ellar/ellar
Releases · python-ellar/ellar
0.4.7
0.4.6
What's Changed
- drop python 3.7 by @eadwinCode in #118
- Added scope to provider config by @eadwinCode in #121
Full Changelog: 0.4.5...0.4.6
0.4.5
What's Changed
- Added auth example by @eadwinCode in #116
- MyPy Liniting Fix And Embedded Body by @eadwinCode in #117
- Moved authorization guard to interceptor by @eadwinCode in #117
Full Changelog: 0.4.4...0.4.5
0.4.4
What's Changed
- Documentation update by @eadwinCode in #102
- OPENAPI Refactor by @eadwinCode in #103
- Bump starlette from 0.27.0 to 0.28.0 by @dependabot in #105
- Expanding Sessions by @eadwinCode in #109
- Authentication and Authorization by @eadwinCode in #104
- Bump types-ujson from 5.7.0.5 to 5.8.0.0 by @dependabot in #107
- Ruff linting and mypy upgrade by @eadwinCode in #115
- Linting, MyPy Upgrade and Example fixes by @eadwinCode in #111
Full Changelog: 0.4.2...0.4.4
0.4.2
What's Changed
- Bump starlette from 0.26.1 to 0.27.0 by @dependabot in #97
- Update typer requirement from <0.8.0,>=0.6.1 to >=0.6.1,<0.10.0 by @dependabot in #96
- Bump uvicorn[standard] from 0.20.0 to 0.22.0 by @dependabot in #95
- Bump codecov/codecov-action from 3.1.3 to 3.1.4 by @dependabot in #94
- Config with prefix by @eadwinCode in #99
- Extended Lifespan to Module classes by @eadwinCode in #100
- Ellar Documentation Redesign by @eadwinCode in 7b5d60b
- Fixed register_services not calling in modules by @eadwinCode in #101
Full Changelog: 0.4.0...0.4.2
0.4.0
What's Changed
- [BREAKING] Renamed Guards decorator to UseGuards decorator by @eadwinCode in #93
New Features
- Background Task Feature by @eadwinCode in #91
You can inject BackgroundTasks instance to you route handler
async def send_welcome_email(email):
print(f'Send Welcome Email Task Called with "{email}"')
@router.post('/signup')
def sign_up(username: str, password: str, email: str, tasks: BackgroundTasks):
tasks.add_task(send_welcome_email, email=email)
return {'status': 'Signup successful'}- EllarInterceptors by @eadwinCode in #92
Use of interceptors to add more custom implementation to your route handlers and controller as define by Aspect Oriented Programming (AOP) technique
@injectable
class ResponseModifierInterceptor(EllarInterceptor):
async def intercept(
self, context: IExecutionContext, next_interceptor: t.Callable[..., t.Coroutine]
) -> t.Any:
data = await next_interceptor()
if data:
data.update(ResponseModifierInterceptor="ResponseModifierInterceptor modified returned resulted")
return data
@Controller("")
class InterceptorControllerTest(ControllerBase):
@UseInterceptors(ResponseModifierInterceptor)
@get("/interceptor-1")
async def interceptor_1(self):
return {"message": "intercepted okay"}Full Changelog: 0.3.8...0.4.0
0.3.8
What's Changed
- Socket IO integration and Websocket documentation by @eadwinCode in #82
- Bump codecov/codecov-action from 3.1.1 to 3.1.3 by @dependabot in #83
- Update email-validator requirement from <2.0.0,>=1.1.1 to >=1.1.1,<3.0.0 by @dependabot in #84
- Update mkdocs-material requirement from <9.0.0,>=7.1.9 to >=7.1.9,<10.0.0 by @dependabot in #86
- Bump types-ujson from 5.7.0.1 to 5.7.0.5 by @dependabot in #88
- ellar package dependency refactor by @eadwinCode in #89
- 0.3.8 by @eadwinCode in #90
- Breaking: any missing import from
ellar.corecan be found inellar.common
Full Changelog: 0.3.6...0.3.8
0.3.6
What's Changed
- Added doc on rate limiting by @eadwinCode in #74
- Guard Documentation by @eadwinCode in #64
- Dynamic Setup Fix by @eadwinCode in #75
- Versioning Documentation by @eadwinCode in #79
- Update python-multipart requirement from <0.0.6,>=0.0.5 to >=0.0.5,<0.0.7 by @dependabot in #66
- Bump types-ujson from 5.7.0.0 to 5.7.0.1 by @dependabot in #68
- Testing Documentation by @eadwinCode in #80
- Starlette Upgrade by @eadwinCode in #81
Full Changelog: 0.3.4...0.3.6
0.3.4
What's Changed
- Caching Featuring by @eadwinCode in #65
- Cache attributes update by @eadwinCode in #71
- Module Setup Feature by @eadwinCode in #73
Full Changelog: 0.3.2...0.3.4
0.3.2
What's Changed
- fix itsdangerous bug in session middleware by @eadwinCode in #63
Full Changelog: 0.3.0...0.3.2