flask_injector
flask_injector copied to clipboard
Adds Injector support to Flask.
Hi, I have been diving deep into the lib and can't stress enough how much of a great project this is! I'm using *flask_injector* and *Flask-Pydantic*, however, they seem to...
Hi! I am facing very strange behaviour when trying to open swgger doc provided by flask smorest. When trying to open swagger page (http://127.0.0.1:5001/application/swagger-ui) application falls down with error TypeError('Injecting...
Flask-Injector 0.14.0 Injector 0.20.1 Flask 2.1.3 Minimum reproducible example: https://gist.github.com/NoRePercussions/00a26a4d801a91b01a916f818dd27092 ## Summary - Flask-Injector adds injection capabilities to Jinja templates - `get_flashed_messages` from Flask gets a list of internal messages...
I have upgraded my packages to: flask-2.2.2 injector-0.20.1 Flask-injector-0.14.1 apispec-6.0.2 flask-apispec-0.11.4 I'm using Flask-apispec to auto-generate api documentation, and I'm using injector library. both independently works well in my code...
Hey! Im trying to build an app using flask_restful library but I couldn't find an example of `flask_injector` together with restful. Is there any example out there? I tried to...
We recently added a conda wrapper of the PyPI package to conda-forge, installable through ``` conda install -c conda-forge flask-injector ``` This PR simply adds a reference to that package...
Hi, I'm completely new to python world so excuse my lack of knowledge. I read in the documentation that this also supports **Flask-RestPlus Resource constructors**, even though I could find...
Hi If I Add `FlaskDynaconf(app)` before `FlaskInjector(app=app, modules=[init_inject])`, it'll result in `TypeError: __name__ must be set to a string object` this is the dynaconf project: https://dynaconf.readthedocs.io/en/latest/guides/flask.html
I've added a test demonstrating the failure. A little bit unsure of how to proceed without heavy introspection.
```python closure_contents = (c.cell_contents for c in cast(Any, fun).__closure__) fun_closure = dict(zip(fun.__code__.co_freevars, closure_contents)) try: class_kwargs = fun_closure['class_kwargs'] except KeyError: # Most likely flask_restful resource, we'll see in a second flask_restful_api...