Flake8 extension to check FastAPI routes all use the same case
Project description
Flake8 FastAPI Route Case
A Flake8 FastAPI plugin to ensure all FastAPI routes follow the same case.
Rationale
In a project, you may have many FastAPI endpoints, this plugin will ensure all FastAPI routes follow the same case so you don't end up with mismatched case.
@router.get("/users/user_info")
def get_user_info():
...
# should be /users/user_info to follow naming convention
@router.post("/users/userInfo")
def post_user_info():
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flake8_fastapi_route_case-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a47e759173dc5b1b50ae7b9064f5545b7c3276da4c3650de2581ecb0806ae919 |
|
MD5 | 2aaf8b32b299419a193077251fef3c7b |
|
BLAKE2b-256 | 5daed104b3c1a1d5480e46d9b0ca9518ccc85ba25780deb619db461c18f8adfe |
Close
Hashes for flake8_fastapi_route_case-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d83f4926398b3ae5ce5d66c98614823079a787bc298c523c20caa0ac0e52b861 |
|
MD5 | 4a3370c9073b9eff27b98fe24555b112 |
|
BLAKE2b-256 | a2f162a36de5099409819ac35c6dde55ae288c64c8351427432db2c4e7e7ab60 |