Everything there is to know about Python Flask

As I was researching whether or not I wanted to go forward designing a new website using Python and Flask, I managed to find detailed information, libraries and tutorials on virtually anything you’d want to do. I figured I’d post it here for personal reference and also in-case anyone else happens to bump into it.

Using the data below you can fairly quickly build a full featured website with a database, google/facebook authentication, payment processing, and even internationalization using the very simple Python Flask framework. It can then be hosted in minutes on a very simple/cheap python hosting site like Python Anywhere. (I am not affiliated with them)

Flask is an un-opinionated micro-framework for build web apis, web services, and websites. For my use case, I found the combination of an unobtrusive framework, simple templating via built-in Jinja2 and having access to Python’s massive library, an absolute boon to development time. Lastly, if you’re new to Python, I highly recommend the free (make sure you select Community) version of PyCharm.

Flask Library Conversation
https://www.reddit.com/r/flask/

JSON/FILE UPLOAD
https://gist.github.com/yoavram/4351498
http://www.patricksoftwareblog.com/receiving-files-with-a-flask-rest-api/
https://stackoverflow.com/questions/36441398/flask-read-uploaded-json-file
https://www.techcoil.com/blog/serve-static-files-python-3-flask/
https://www.techcoil.com/blog/configuring-nginx-to-serve-files-for-a-static-website/

STORING SQL DATA
http://exploreflask.com/en/latest/storing.html
http://flask.pocoo.org/docs/1.0/tutorial/database/
https://blog.pythonanywhere.com/121/

OAUTH
https://pythonspot.com/login-to-flask-app-with-google/
https://pythonhosted.org/Flask-OAuth/
https://github.com/mitsuhiko/flask-oauth/blob/master/example/facebook.py

TOKEN AUTH
https://realpython.com/token-based-authentication-with-flask/

SSL
https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https
http://flask.pocoo.org/snippets/111/
https://techtutorialsx.com/2016/12/27/9345/

PAYMENT PROCESSING
https://stripe.com/docs/checkout/flask
https://jeffknupp.com/blog/2014/01/18/python-and-flask-are-ridiculously-powerful/
https://pythonprogramming.net/paypal-flask-tutorial/
https://developers.braintreepayments.com/

SOCIAL SHARING
https://pythonhosted.org/Flask-Social/

CHARTING
https://realpython.com/web-development-with-flask-fetching-data-with-requests/
https://www.blog.pythonlibrary.org/2015/04/16/using-pygal-graphs-in-flask/

ERROR HANDLING
http://flask.pocoo.org/docs/0.12/patterns/apierrors/

INTERNATIONALIZATION
https://damyanon.net/post/flask-series-internationalization/

TEMPLATE
https://github.com/sloria/cookiecutter-flask
https://github.com/berlotto/flask-app-template
https://github.com/realpython/flask-boilerplate

SUPER TUTORIAL
http://flask.pocoo.org/docs/1.0/quickstart/
http://flask.pocoo.org/docs/1.0/patterns/packages/
( below is the best tutorial out there, start at part 1 if you’re brand-new)
https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates
https://buildasaasappwithflask.com/ (NOT FREE)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.