developer-portal / content

Content for the Fedora Developer Portal
https://developer.fedoraproject.org/
GNU General Public License v2.0
106 stars 248 forks source link

FastAPI content enhancement #424

Closed jackorp closed 2 years ago

jackorp commented 2 years ago

From Ben Beasley on Fedora Devel list:

I noticed that the Flask and Django pages have language like:

    Fedora includes a python3-flask package that you can install and import. However, unless you are developing or packaging an application for Fedora, it is more useful to install Flask as a third-party package inside a virtual environment. This will keep your project separate from your system, giving you more freedom in choosing additional libraries and their versions, and easing collaboration with people who aren’t using Fedora yet.

which, I think is reasonable; for better or worse, this is how Python-based web development is conventionally done in practice.

It might be worthwhile to use similar language on the FastAPI page. Currently, the page recommends a virtualenv, but doesn’t mention that there is a python3-fastapi package in Fedora too.