kink
flask_injector
Our great sponsors
kink | flask_injector | |
---|---|---|
2 | 2 | |
324 | 264 | |
9.0% | 0.0% | |
4.2 | 5.2 | |
12 days ago | 9 months ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kink
flask_injector
-
FLASK REST API BOILERPLATE
Use something like flask-injector to have some dependency injection. This is clunkier than the DI provided by Microsoft.Extensions.DependencyInjection but it's way nicer than going without. Just read the docs and understand how it works.
-
Any good example projects that I can use to compare my own flask site?
Optionally, but I recommend, use something like flask_injector to do dependency injection into your routes so you don't need to worry about creating the services in your route endpoints. This is kind of invasive because of the inject decorator and does require using type hints.
What are some alternatives?
Dependency Injector - Dependency injection framework for Python
cookiecutter-flask-restful - Flask cookiecutter template for builing APIs with flask-restful, including JWT auth, cli, tests, swagger, docker and more
injector - Python dependency injection framework, inspired by Guice
cookiecutter-flask - A flask template with Bootstrap, asset bundling+minification with webpack, starter templates, and registration/authentication. For use with cookiecutter.
flama - Fire up your models with the flame 🔥
flask-base - A simple Flask boilerplate app with SQLAlchemy, Redis, User Authentication, and more.
deadsimple - A dependency injection library for python, aimed for the least amount of magic.
flask-starter - Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development.
Bevy - A dependency injection framework for Python! Bevy's primary goal is to help you write amazing code with less effort.
awesome-flask - A curated list of awesome things related to Flask
Airflow - Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
docker-flask-example - A production ready example Flask app that's using Docker and Docker Compose.