Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Let Piccolo scaffold you an ASGI web app, using Piccolo as the ORM:
piccolo asgi new
```

[Starlette](https://www.starlette.io/), [FastAPI](https://fastapi.tiangolo.com/), [BlackSheep](https://www.neoteroi.dev/blacksheep/), [Litestar](https://litestar.dev/), [Esmerald](https://esmerald.dev/), [Lilya](https://lilya.dev), [Quart](https://quart.palletsprojects.com/en/latest/), [Falcon](https://falconframework.org/) and [Sanic](https://sanic.dev/en/) are currently supported.
[Starlette](https://www.starlette.io/), [FastAPI](https://fastapi.tiangolo.com/), [BlackSheep](https://www.neoteroi.dev/blacksheep/), [Litestar](https://litestar.dev/), [Ravyn](https://www.ravyn.dev/), [Lilya](https://lilya.dev/), [Quart](https://quart.palletsprojects.com/en/latest/), [Falcon](https://falconframework.org/) and [Sanic](https://sanic.dev/en/) are currently supported.

## Piccolo ecosystem

Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Give me an ASGI web app!

piccolo asgi new

FastAPI, Starlette, BlackSheep, Litestar, Esmerald, Lilya, Quart, Falcon and Sanic
FastAPI, Starlette, BlackSheep, Litestar, Ravyn, Lilya, Quart, Falcon and Sanic
are currently supported, with more coming soon.

----------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions docs/src/piccolo/asgi/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Routing frameworks

`Starlette <https://www.starlette.io/>`_, `FastAPI <https://fastapi.tiangolo.com/>`_,
`BlackSheep <https://www.neoteroi.dev/blacksheep/>`_,
`Litestar <https://litestar.dev/>`_, `Esmerald <https://esmerald.dev/>`_,
`Litestar <https://litestar.dev/>`_, `Ravyn <https://www.ravyn.dev/>`_,
`Lilya <https://lilya.dev/>`_,
`Quart <https://quart.palletsprojects.com/en/latest/>`_,
`Falcon <https://falconframework.org/>`_
Expand All @@ -31,8 +31,8 @@ and `Sanic <https://sanic.dev/en/>`_ are supported.
Which to use?
=============

All are great choices. FastAPI is built on top of Starlette and Esmerald is built on top of Lilya, so they're
very similar. FastAPI, BlackSheep, Litestar and Esmerald are great if you want to document a REST
All are great choices. FastAPI is built on top of Starlette and Ravyn is built on top of Lilya, so they're
very similar. FastAPI, BlackSheep, Litestar and Ravyn are great if you want to document a REST
API, as they have built-in OpenAPI support.

-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion piccolo/apps/asgi/commands/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"fastapi": ["fastapi"],
"blacksheep": ["blacksheep[full]"],
"litestar": ["litestar"],
"esmerald": ["esmerald"],
"ravyn": ["ravyn"],
"lilya": ["lilya"],
"quart": ["quart", "quart_schema"],
"falcon": ["falcon"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any
from pathlib import Path

from esmerald import (
from ravyn import (
APIView,
Esmerald,
Ravyn,
Gateway,
HTTPException,
Include,
Expand All @@ -12,7 +12,7 @@ from esmerald import (
post,
put,
)
from esmerald.core.config import StaticFilesConfig
from ravyn.core.config import StaticFilesConfig
from piccolo.engine import engine_finder
from piccolo.utils.pydantic import create_pydantic_model
from piccolo_admin.endpoints import create_admin
Expand Down Expand Up @@ -107,7 +107,7 @@ class TaskAPIView(APIView):
await task.remove()


app = Esmerald(
app = Ravyn(
routes=[
Gateway("/", handler=home),
Gateway("/tasks", handler=TaskAPIView),
Expand Down
4 changes: 2 additions & 2 deletions piccolo/apps/asgi/commands/templates/app/app.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
{% include '_blacksheep_app.py.jinja' %}
{% elif router == 'litestar' %}
{% include '_litestar_app.py.jinja' %}
{% elif router == 'esmerald' %}
{% include '_esmerald_app.py.jinja' %}
{% elif router == 'ravyn' %}
{% include '_ravyn_app.py.jinja' %}
{% elif router == 'lilya' %}
{% include '_lilya_app.py.jinja' %}
{% elif router == 'quart' %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os

import jinja2
from esmerald import Request, Response, get
from esmerald.responses import HTMLResponse
from ravyn import Request, Response, get
from ravyn.responses import HTMLResponse

ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{% include '_blacksheep_endpoints.py.jinja' %}
{% elif router == 'litestar' %}
{% include '_litestar_endpoints.py.jinja' %}
{% elif router == 'esmerald' %}
{% include '_esmerald_endpoints.py.jinja' %}
{% elif router == 'ravyn' %}
{% include '_ravyn_endpoints.py.jinja' %}
{% elif router == 'lilya' %}
{% include '_lilya_endpoints.py.jinja' %}
{% elif router == 'quart' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<li><a href="/admin/">Admin</a></li>
<li><a href="/schema/swagger">Swagger API</a></li>
</ul>
<h3>Esmerald</h3>
<h3>Ravyn</h3>
<ul>
<li><a href="/admin/">Admin</a></li>
<li><a href="/docs/swagger">Swagger API</a></li>
Expand Down