Skip to content

WIP - `@app.route(..., methods=["GET"])` ➡️ `@app.get(...)`! 📝

License

Notifications You must be signed in to change notification settings

Kludex/no-route

Repository files navigation

no-route

Package version

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():
  ...

Installation

pip install no-route

License

This project is licensed under the terms of the MIT license.

About

WIP - `@app.route(..., methods=["GET"])` ➡️ `@app.get(...)`! 📝

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages