File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ Let Piccolo scaffold you an ASGI web app, using Piccolo as the ORM:
5757piccolo asgi new
5858```
5959
60+ [ Starlette] ( https://www.starlette.io/ ) and [ FastAPI] ( https://fastapi.tiangolo.com/ ) are currently supported.
61+
6062## Documentation
6163
6264See [ Read the docs] ( https://piccolo-orm.readthedocs.io/en/latest/piccolo/getting_started/index.html ) .
Original file line number Diff line number Diff line change @@ -12,16 +12,29 @@ async Python libraries to interoperate. It's the equivalent of WSGI in the
1212synchronous world.
1313
1414By using the ``piccolo asgi new `` command, Piccolo will scaffold an ASGI web
15- app for you, which includes everything you need to get started.
15+ app for you, which includes everything you need to get started. The command
16+ will ask for your preferences on which libraries to use.
1617
17- Currently, `Starlette <https://www.starlette.io/ >`_ is used as the routing framework, and is a great choice.
18+ Routing frameworks
19+ ******************
20+
21+ Currently, `Starlette <https://www.starlette.io/ >`_ and `FastAPI <https://fastapi.tiangolo.com/ >`_
22+ are supported.
1823
1924Other great ASGI routing frameworks exist, and may be supported in the future
2025(`Quart <https://pgjones.gitlab.io/quart/ >`_ ,
21- `FastAPI <https://fastapi.tiangolo.com/ >`_ ,
2226`Sanic <https://sanic.readthedocs.io/en/latest/ >`_ ,
2327`Django <https://www.djangoproject.com/ >`_ etc).
2428
29+ Which to use?
30+ =============
31+
32+ Both are great choices. FastAPI is built on top of Starlette, so they're
33+ very similar. FastAPI is useful if you want to document a REST API.
34+
35+ Web servers
36+ ************
37+
2538`Hypercorn <https://pgjones.gitlab.io/hypercorn/ >`_ and
2639`Uvicorn <https://www.uvicorn.org/ >`_ are available as ASGI servers.
2740`Daphne <https://github.com/django/daphne >`_ can't be used programatically so
You can’t perform that action at this time.
0 commit comments