Skip to content

Incompatibility with recent Starlette versions (missing app.route) #271

@polkorny

Description

@polkorny

Describe the bug
When running tests against newer versions of Starlette(1.0), the following error occurs:

AttributeError: 'Starlette' object has no attribute 'route'

To Reproduce
Example pattern used in tests:

@app.route("/t1")
@limiter.limit("2/second")
def handler(request):
    return PlainTextResponse("ok")

Expected behavior
Compatibility with newer Starlette versions, or documented version constraints.

Your app (please complete the following information):
slowapi: 0.1.9
starlette: 1.0
python: 3.13

Additional context
This was encountered while packaging for Debian, where newer Starlette versions are used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions