fastapi-cli
fastapi-cli copied to clipboard
Run and manage FastAPI apps from the command line with FastAPI CLI. π
This PR moves the `dev` and `run` commands into their own file called `commands/server.py` This should make it easier to add new commands in future π
This feat adds the possibility to generate the documentation of an app in Markdown (git style). Beautifully named `fastapi doc` It uses `from fastapi.openapi.utils.get_openapi` to generate the openapi specs then...
new command for cli 'init' permits to initialize a new FastAPI project with example code.
This change adds support for using return-typed factory functions, as well as auto-detecting some function names. I've identified factory functions by inspecting the return-type of the function (`def create_app() ->...
Most important change is the added `conftest.reset_imports` fixture, which restores the state of `sys.modules` after each test, similar to `conftest.resset_syspath`. Other changes rewrites duplicated tests to use `pytest.mark.parametrize` and replaces...
Updates the requirements on [pre-commit](https://github.com/pre-commit/pre-commit) to permit the latest version. Release notes Sourced from pre-commit's releases. pre-commit v4.0.0 Features Improve pre-commit migrate-config to handle more yaml formats. #3301 PR by...
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.5 to 0.6.9. Release notes Sourced from ruff's releases. 0.6.9 Release Notes Preview features Fix codeblock dynamic line length calculation for indented docstring examples (#13523) [refurb] Mark...
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.9.0 to 1.10.3. Release notes Sourced from pypa/gh-action-pypi-publish's releases. v1.10.3 π Cosmetic Output Improvements In #270, @βfacutuescaπ° made a follow-up to their previous PR #250, making the...
This PR adds rich-toolkit to improve the look and feel of the app, for now we are only updating the server commands π In terms of the code, I've most...
Addition of `fastapi schema` command to produce openapi schema without running the app. (Based on https://github.com/fastapi/fastapi/discussions/12216)