Releases: sparckles/Robyn
v0.22.1 - Implement Support for Python 3.11
What's Changed
- Updates prose to format code block and docs by @rachfop in #356
- chore(ci): add python 3.11 to the build and test CI by @AntoineRR in #358
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #359
- ci: update precommit config by @sansyrox in #361
New Contributors
- @rachfop made their first contribution in #356
- @pre-commit-ci made their first contribution in #359
Full Changelog: v0.22.0...v0.22.1
v0.22.0 - Allow better response handling and fix windows support
What's Changed
- fix: better handling of route return type by @AntoineRR in #349
- fix: windows support by @sansyrox in #354
Full Changelog: v0.21.0...v0.22.0
Latest Docs available at : https://sansyrox.github.io/robyn/#/features?id=response-object
Code Sample
from robyn.robyn import Response
@app.get("/response")
async def response(request):
return Response(status_code=200, headers={}, body="OK")
[BREAKING CHANGE] v0.21.0 - Allow serving non-html type files
What's Changed
- feat: return Response from routes by @AntoineRR in #346
- fix: fix the static file serving by @sansyrox in #347
Full Changelog: v0.20.0...v0.21.0
v0.20.0 - [Breaking Change] - Allow non string response types
What's Changed
- feat: add an auto benchmark script by @AntoineRR in #329
- feat: allow non string types in response by @sansyrox in #337
Full Changelog: v0.19.2...v0.20.0
Sample Usage
@app.get("/request_headers")
async def request_headers():
return {
"status_code": 200,
"body": "This is a regular response",
"type": "text",
"headers": {"Header": "header_value"},
}
v0.19.2 - allow response headers and fix headers not working in const requests
What's Changed
- fix: factorizing code by @AntoineRR in #322
- fix: allow response headers and fix headers not working in const requests by @sansyrox in #331
Full Changelog: v0.19.1...v0.19.2
Usage
You can return headers like:
@app.get("/redirect")
async def redirect(request):
return {
"status_code": "200",
"body": "test message",
"type": "text",
"headers": jsonify({"Header": "value"}),
}
v0.19.1 - Add templating Support and multiple performance enhancements
What's Changed
- docs: fix blog link in website by @sansyrox in #309
- docs: fix middleware section in examples by @sansyrox in #315
- Router refactor by @AntoineRR in #307
- Add Railway deployment process. by @carlosm27 in #316
- docs: update hosting docs by @sansyrox in #319
- Various improvements around the index method by @AntoineRR in #318
New Contributors
- @carlosm27 made their first contribution in #316
Full Changelog: v0.18.3...v0.19.1
Installation:
pip3 install "robyn[templating]"
Usage:
https://sansyrox.github.io/robyn/#/features?id=templates
v0.18.3 - Fix `log-level` in Robyn
What's Changed
- fix: log level not working by @sansyrox in #303
- add route type enum by @suhailmalik07 in #299
Full Changelog: v0.18.2...v0.18.3
Thank you @Shending-Help for finding the issue! 😄
v0.18.2 - Retain functional metadata and fix port and host url
What's Changed
SocketHeld::new
refactor by @Jamyw7g in #294- update rust packages to latest by @suhailmalik07 in #298
- fix: retain metadata of the route functions by @sansyrox in #295
- fix config of port and url by @kimhyun5u in #302
New Contributors
- @Jamyw7g made their first contribution in #294
- @suhailmalik07 made their first contribution in #298
- @kimhyun5u made their first contribution in #302
PR Reviews
Thanks @guilefoylegaurav for the PR reviews!
Full Changelog: v0.18.1...v0.18.2
v0.18.1 - Fix hot reload on Windows and robyn.env
What's Changed
Fix
- fix: enable hot reload on windows by @guilefoylegaurav in #290
- Hotfix detecting robyn.env by @Shending-Help in #292
Chore
New Contributors
Full Changelog: v0.18.0...v0.18.1
v0.18.0 - Automatically load environment variables using `robyn.env` and better developer experience
Sample usage
Environment Variables
There are some environment variables that Robyn looks out for. e.g. ROBYN_URL
and ROBYN_PORT
.
You can have a robyn.env
file to load them automatically in your environment.
The server will check for the robyn.env
file in the root of the project. If it is able to find one, it will parse the environment variables and set your environment.
e.g. structure
--project/
--robyn.env
--index.py
...
Sample robyn.env
ROBYN_PORT=5000
ROBYN_URL=127.0.0.1
What's Changed
- fix: add proper kill process to conftest. #249 by @guilefoylegaurav in #278
- Feature add support for env variables by @Shending-Help in #286
- testing env support by @Shending-Help in #288
New Contributors
- @guilefoylegaurav made their first contribution in #278
- @Shending-Help made their first contribution in #286
Full Changelog: v0.17.5...v0.18.0