tutorial, but some people really try to use this approach for real life. Don’t be that guy • In real project this is terrible idea to have everything in one file • Shameless plug, I’ve done everything for you https://github.com/xen/flask-project-template • Flask have all needed parts: Blueprints and Extensions
be nice for people who will use it • Versioning • Aliases • Search • Limit fields returned by API • Cache headers • JSON • HTTP_X_HTTP_METHOD_OVERRIDE • Out of the scope: • SSL • Documentation
open if you use this technics • Storing data about how much user consumed data is bottle neck for most cases • If you still need it use memcache via Flask-Cache
If you just need to authorize user use Flask-Auth • If you need Facebook, Twitter, etc use python-social • python-social can ruin your day, or two. Not sure that integration now works. Freeze version that is working for you