Flask

  • 2,454 views
Uploaded on

Presentation for the PyHouston meetup over Flask - a micro-development framework for web development

Presentation for the PyHouston meetup over Flask - a micro-development framework for web development

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,454
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
40
Comments
0
Likes
2

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. A Python Micro-framework For Web Development http://flask.pocoo.org Glen Zangirolami Blog: http://theglenbot.com Twitter: http://twitter.com/glenbot
  • 2. What is Flask?
    • A micro-framework written in python
    • 3. It is called a micro-framework because the core remains simple and you can use extensions to enhance it
    • Uses Werkzeug WSGI utilities and Jinja 2 template engine
    • 4. A solid foundation for web applications
  • 5. What comes with Flask?
    • Built-in development server and really awesome debugger
    • 6. Integrated unittesting support
    • 7. Jinja 2 template engine
    • 8. 100% WSGI Compatible
    • 9. Unicode Based
    • 10. Fantastic documentation and community
  • 11. What can Flask be used for?
    • Creating a twitter type client
    • 12. A personal blog
    • 13. Site that requires forms and registration
    • 14. Software administration panels
    • 15. Anything you can think of. The possibilities are endless!
  • 16. What's the cons?
    • A young framework
    • 17. It's super simple (see 4 th bullet)
    • 18. Hosting Support
    • 19. May require some custom code (that's not so bad right? ;))
  • 20. What's the pros?
    • Small, agile, and fast
    • 21. Customizable
    • 22. Strong Community
    • 23. Built upon proven and stable code
    • 24. Early adopters can lay the ground work for the future of flask
  • 25. How to start using Flask.
      Flask is easy to install. easy_install Flask
  • 26. It wouldn't be a demo without hello world! from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run() It's that simple!
  • 27. More complex examples.
    • Flaskr – A microblog
    • 28. Minitwit – A twitter clone
    • 29. flask.pocoo.org – Yes, the website is running flask.
    • 30. http://github.com/mitsuhiko/flask/tree/master/examples/
  • 31. Want to contribute?
    • GitHub - http://github.com/mitsuhiko/flask
    • 32. Mailing List - http://flask.pocoo.org/mailinglist/
    • 33. IRC – irc.freenode.net - #pocoo
  • 34. Demo then questions Resources: http://flask.pocoo.org/ Slides: http://slideshare.net/glenbot Thanks again! Glen Zangirolami http://theglenbot.com @glenbot on twitter