Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_fastapi_route_case-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

flake8_fastapi_route_case-0.1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page