Nel corso dell’ultimo anno abbiamo lavorato all’implementazione Python di una RESTful Web API completa. Abbiamo imparato un bel po’ di cose sui best pattern REST e, naturalmente, abbiamo messo alla prova le ben note capacità web di Python, rilasciando nel frattempo un paio di progetti Open Source. Nel corso del mio intervento condividerò quel che abbiamo imparato. Prenderemo in considerazione il problematico design di una REST API ‘pura’. Vedremo che cosa offre Python in questo campo e scenderemo infine nel dettaglio, dando una occhiata al codice che abbiamo scritto. Alcune tecnologie/stack che tratteremo sono (in nessun ordine particolare): Flask, PyMongo, MongoDB, REST, JSON, XML, Heroku. Lo sapevi? Che ti piaccia o no, c’è una REST API nel tuo futuro.
ABOUT THE TALK
What is Flask? Is it any better than Django? Can I use Flask on Google AppEngine? Fortunately, during the course of this talk I will not have to answer any of these questions. This talk is a showcase of our experience with using Flask to build flexible and scalable web service and it focuses strongly on Flask and Flask extensions’ internals.
WHO SHOULD COME TO THIS TALK
Basically anybody who’s looking to invest into learning Flask or already started using Flask. Even though this talk focuses strongly on Flask-related topics, it also raises important points relevant to any web development framework or library.
ABSTRACT
Introduction
Flask
Exploring Flask-Celery
Flask-SQLAlchemy
Performance analysis
Summary