Releases: python-ellar/ellar
Releases · python-ellar/ellar
0.3.0
What's Changed
- Bump black from 22.8.0 to 22.12.0 by @dependabot in #50
- Bump types-ujson from 0.1.1 to 5.6.0.0 by @dependabot in #49
- Update typer requirement from <0.7.0,>=0.6.1 to >=0.6.1,<0.8.0 by @dependabot in #40
- Removed ASGI args from contextvar by @eadwinCode in #53
- Document updates Jan 2023 by @eadwinCode in #54
- Injectable Class should be resolved at runtime without errors by @eadwinCode in #60
- More Doc Updates by @eadwinCode in #55
- Guards Refactor by @eadwinCode in #59
- restored commented tests by @eadwinCode in #61
- Bump starlette from 0.21.0 to 0.23.1 by @dependabot in #48
- Bump types-ujson from 5.6.0.0 to 5.7.0.0 by @dependabot in #58
- Bump types-dataclasses from 0.1.7 to 0.6.6 by @dependabot in #57
- Update flake8 requirement from <4.0.0,>=3.8.3 to >=3.8.3,<7.0.0 by @dependabot in #56
Full Changelog: 0.2.8...0.3.0
0.2.8
What's Changed
- Separated
IHostContextfromIExecutionContextand added factory class that manages their creation by @eadwinCode in #51 - Made Guards classes Injectable by @eadwinCode in #52
- Switched from
thread.localtoContextVarto managerequest_scopesproperly by @eadwinCode in #52 - Added Documentation for
ExecutionContext. - Increased test coverage.
Full Changelog: 0.2.6...0.2.8
0.2.6
What's Changed
- Documentation Updates by @eadwinCode in #43
- Reverted building routes from a single list to a list of routers with a well-managed route not found cross routes @eadwinCode in #43
- Python 3.11 Support by @eadwinCode in #44
- Changed ASCII drawing to the image by @eadwinCode in #45
- Added an
IExceptionHandlercontract for defining custom exception handler by @eadwinCode in #46. Doc - Dropped use for
BaseHTTPMiddlewarefrom Starlette and added aFunctionBasedMiddlewareby @eadwinCode in #47 - Added
filedecorator forFileResponseModelandStreamingResponseModelby @eadwinCode in #47
import asyncio
from ellar.common import ModuleRouter, file
async def slow_numbers(minimum: int, maximum: int):
yield ("<html><body><ul>")
for number in range(minimum, maximum + 1):
yield "<li>%d</li>" % number
await asyncio.sleep(0.01)
yield ("</ul></body></html>")
router = ModuleRouter('/file')
@router.get()
@file(media_type='text/html')
def file_download():
return {'path': 'path/to/file.html', 'filename': 'code.html', 'content_disposition_type': 'attachment'}
@router.get('/stream')
@file(media_type='text/html', streaming=True)
def file_stream():
return slow_numbers(1, 4)Full Changelog: 0.2.4...0.2.6
0.2.4
What's Changed
- Update mkdocs-material requirement from <8.0.0,>=7.1.9 to >=7.1.9,<9.0.0 by @dependabot in #37
- Update pytest-cov requirement from <4.0.0,>=2.12.0 to >=2.12.0,<5.0.0 by @dependabot in #35
- Pydependencies upgrade by @eadwinCode in #32
- Bump types-orjson from 3.6.0 to 3.6.2 by @dependabot in #34
- Made CLI tool an optional requirement by @eadwinCode in #38
Full Changelog: 0.2.2...0.2.4
0.2.2
What's Changed
- update readme by @areski in #30
- Cli help command fix by @eadwinCode in #31
Full Changelog: 0.2.0...0.2.2
0.2.0
What's Changed
- Project dependency fix by @eadwinCode in #29
- Python 3.6 support ends here
Full Changelog: 0.1.8...0.2.0
0.1.8
0.1.6
What's Changed
- package stats update by @eadwinCode in #17
- fixed static package type by @eadwinCode in #18
- Doc Preparation by @eadwinCode in #19
- Moved Configuration From File To Class Based by @eadwinCode in #21
- Bump codecov/codecov-action from 3.1.0 to 3.1.1 by @dependabot in #25
- CLI Commands And Basic Project Scaffolding by @eadwinCode in #20
- Quick-Start Doc by @eadwinCode in #27
CLI Commands
To scaffold ellar project
ellar create-project `project-name`To scaffold ellar app
ellar create-module `app-name`To start application server
ellar runserverFull Changelog: 0.1.4...0.1.6
0.1.4
What's Changed
- Bump actions/setup-python from 3 to 4 by @dependabot in #8
- Starlette Class Renames by @eadwinCode in #9
- Common Package Testing by @eadwinCode in #10
- Constant Value All Caps by @eadwinCode in #11
- Openapi Module Test by @eadwinCode in #12
- Guard Module Testing by @eadwinCode in #13
- Configuration Module Test by @eadwinCode in #14
- App Test by @eadwinCode in #15
- AppFactory and TestClientFactory Test by @eadwinCode in #16
Full Changelog: 0.1.2...0.1.4
Version 0.1.2
What's Changed
- Refactored route operation functions @eadwinCode in #7