Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
BSD-2-CLAUSE License
Bot releases are visible (Hide)
Published by sansyrox over 1 year ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.28.0...v0.28.1
Published by sansyrox over 1 year ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.27.0...v0.28.0
Published by sansyrox over 1 year ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.26.1...v0.27.0
Published by sansyrox over 1 year ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.26.0...v0.26.1
Published by sansyrox over 1 year ago
star-history
by @hemangjoshi37a in https://github.com/sansyrox/robyn/pull/434
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.25.0...v0.26.0
Published by sansyrox over 1 year ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.24.1...v0.25.0
Special Thanks to @AntoineRR for implementing the sick dark mode on the docs website! π₯
Published by sansyrox over 1 year ago
i.e. you can exit Robyn gracefully in windows now
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.24.0...v0.24.1
Published by sansyrox over 1 year ago
@app.get("/binary_output_response_sync")
def binary_output_response_sync(request):
return Response(
status_code=200,
headers={"Content-Type": "application/octet-stream"},
body="OK",
)
@app.get("/binary_output_async")
async def binary_output_async(request):
return b"OK"
@app.get("/binary_output_response_async")
async def binary_output_response_async(request):
return Response(
status_code=200,
headers={"Content-Type": "application/octet-stream"},
body="OK",
)
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.23.1...v0.24.0
Published by sansyrox over 1 year ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.23.0...v0.23.1
Published by sansyrox over 1 year ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.22.1...v0.23.0
This change was implemented as MacOS has some default service running on port 5000. And we had to change the defaults in our testing suite constantly.
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.22.0...v0.22.1
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/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")
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.20.0...v0.21.0
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.19.2...v0.20.0
@app.get("/request_headers")
async def request_headers():
return {
"status_code": 200,
"body": "This is a regular response",
"type": "text",
"headers": {"Header": "header_value"},
}
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.19.1...v0.19.2
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"}),
}
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.18.3...v0.19.1
Installation:
pip3 install "robyn[templating]"
Usage:
https://sansyrox.github.io/robyn/#/features?id=templates
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.18.2...v0.18.3
Thank you @Shending-Help for finding the issue! π
Published by sansyrox almost 2 years ago
Sample usage
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
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.17.5...v0.18.0
Published by sansyrox almost 2 years ago
SocketHeld::new
refactor by @Jamyw7g in https://github.com/sansyrox/robyn/pull/294
Thanks @guilefoylegaurav for the PR reviews!
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.18.1...v0.18.2
Published by sansyrox almost 2 years ago
Full Changelog: https://github.com/sansyrox/robyn/compare/v0.18.0...v0.18.1