Skip to content

Enhancement: Provide alias for request scope #53

Description

@Chratho

The request scope name directly clashes with the global request variable in Flask. Even when using the injector-style approach and injecting flask.Request into your handlers/services, the developer might still want to use a descriptive name like request for it, raising an issue again.

Since renaming the scope would not be backwards-compatible, it would be nice if Flask-Injector could at least provide a second alias like request_scoped to avoid stuff like

from flask_injector import request as request_scoped
.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions