tarsil - Overview

Who is tarsil?

tarsil is also known as Tiago Silva, not the football player but a Software Engineer.

Passionate to his core, tarsil is also the creator of Ravyn, Lilya, Edgy, AsyncMQ, Mongoz, Asyncz and many open source tools out there.

I do have a discord channel if you want to ask me anything about what I do and my tools.

Hello from tarsil

Nothing like using Ravyn to say hi.

$ pip install ravyn
$ pip install palfrey

Then, inside an app.py, add this.

import palfrey

from ravyn import Ravyn, Gateway, JSONResponse, Request, get


@get()
def welcome() -> JSONResponse:
    return JSONResponse({"message": "Welcome to tarsil's Github"})


@get()
def user(user: str) -> JSONResponse:
    return JSONResponse({"message": f"Welcome to tarsil's Github, {user}"})


@get()
def user_in_request(request: Request) -> JSONResponse:
    user = request.path_params["user"]
    return JSONResponse({"message": f"Welcome to tarsil's Github, {user}"})


app = Ravyn(
    routes=[
        Gateway("/ravyn", handler=welcome),
        Gateway("/ravyn/{user}", handler=user),
        Gateway("/ravyn/in-request/{user}", handler=user_in_request),
    ]
)


if __name__ == "__main__":
    palfrey.run(app, port=8000)

In the end, run the ./app.py and access your localhost in the endpoints. Have fun!