Skip to content

Releases: sparckles/Robyn

v0.22.1 - Implement Support for Python 3.11

17 Jan 20:33
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.22.0...v0.22.1

v0.22.0 - Allow better response handling and fix windows support

14 Jan 14:26
Compare
Choose a tag to compare

What's Changed

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

06 Jan 18:37
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.20.0...v0.21.0

v0.20.0 - [Breaking Change] - Allow non string response types

20 Dec 21:39
Compare
Choose a tag to compare

What's Changed

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

14 Dec 22:24
Compare
Choose a tag to compare

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

04 Dec 01:20
Compare
Choose a tag to compare

What's Changed

New Contributors

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

11 Nov 19:51
Compare
Choose a tag to compare

What's Changed

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

06 Nov 13:33
Compare
Choose a tag to compare

What's Changed

New Contributors

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

24 Oct 09:03
Compare
Choose a tag to compare

What's Changed

Fix

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

11 Nov 09:49
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v0.17.5...v0.18.0