This PDF 1.4 document has been generated by Impress / LibreOffice 5.1, and has been sent on pdf-archive.com on 04/08/2017 at 13:56, from IP address 58.187.x.x.
The current document download page has been viewed 241 times.
File size: 1.11 MB (17 pages).
Privacy: public file
Python Hanoi Meetup #1
●
Speaker: Do Anh Tu
●
Github: https://github.com/tudoanh
●
Blog: https://medium.com/@doanhtu
●
Author of bookzen.top and getlink.top
●
●
and some packages: python-facebook-bot and
get_fshare
… and unemployed as fuck =))
Topics
●
Flask
●
Bulma.io
●
RESTful API (sort of)
●
React.js (Just for fun)
●
Philosophy (j/k)
1 - Build application with Flask
1.1 – What is Flask?
●
Flask is a Python web micro-framework
●
Homepage: http://flask.pocoo.org/
●
Author: https://twitter.com/mitsuhiko
●
●
Using by: Pinterest, Uber, Twillio, Linked-in,
Obama President’s team, Netflix …
So yep, flask sound like a good deal.
1.2 – Why Flask
●
Small
●
Easy to use
●
Sort learning curve
●
Good for small projects
●
Perfect fit for writing APIs (flask-restful)
●
Why not?
1.3 - Cons
●
Have no admin page
●
DIY
●
Not fully documented like Django
1.4 – How it works?
●
Quick start: http://flask.pocoo.org/docs/0.12/quickstart/
●
Router
●
Static files and Templates
●
Render templates
●
●
Cookies & Sessions (which allows you to store
information specific to a user from one request to the
next)
Database
1.5 – Writing APIs
●
●
●
●
Flask-restful
https://flaskrestful.readthedocs.io/en/0.3.5/quickstart.html
HTTP methods (used mostly)
–
POST
–
GET
–
PUT
–
DELETE
Wanna learn more about HTTP? Go here.
But why APIs?
HN_Python_Meetup_05_08_2017.pdf (PDF, 1.11 MB)
Use the permanent link to the download page to share your document on Facebook, Twitter, LinkedIn, or directly with a contact by e-Mail, Messenger, Whatsapp, Line..
Use the short link to share your document on Twitter or by text message (SMS)
Copy the following HTML code to share your document on a Website or Blog