Yet another opinionated formatter. Turns @app.route(..., methods=[<method>])
into @app.<method>(...)
.
Works with Flask
and FastAPI
.
Example:
@app.route("/", methods=["GET"])
def home():
...
Into:
@app.get("/")
def home():
...
pip install no-route
This project is licensed under the terms of the MIT license.