Flask for SmartLab developers
==> Environment for development in Flask in MPT
> Run app with pure Flask
docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask
> Run app with uWSGI
docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask uwsgi
> Run app in debug mode
docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask debug
> Run tools to test code quality
docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask test
> Run terminal to inspect container
docker run -p 8080:5000 -it -v /path/app:/app smartlab/flask terminal
Note: the main file must be named as main.py
Flask
Copyright © 2010 by the Pallets team - BSD 3-Clause License
Flask-RESTful
Copyright © 2018, Kevin Burke, Kyle Conroy, Ryan Horn, Frank Stratton, Guillaume Binet - BSD License
Flask-CORS
Copyright © 2013, Cory Dolphin - MIT License
Flask-RESTful-Swagger
Copyright © 2016, Sobolev Nikita - MIT License
Pandas
Copyright © 2008-2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team - BSD 3-Clause License
Pylint
Copyright © 1989, 1991 Free Software Foundation, Inc. - GNU General Public License v2.0
Nose2
Copyright © 2012, Jason Pellerin - BSD 3-Clause License
NumPy
Copyright © 2019 NumPy developers - BSD 3-Clause License
Impyla
Copyright © Impyla developers - Apache 2.0 License
Kazoo
Copyright © 2011-2014, Kazoo team - Apache 2.0 License
Babel
Copyright © 2018, The Babel Team - BSD 3-Clause License
Ansi Colors
Copyright © 2012 Giorgos Verigakis - ISC License
Requests
Copyright © 2018 Kenneth Reitz - Apache 2.0 License
PyYAML
Copyright © 2017-2019 Ingy döt Net, Copyright © 2006-2016 Kirill Simonov - MIT License