Kunal Relan

Building REST APIs with Flask

Create Python Web Services with MySQL

Kunal Relan
New Delhi, Delhi, India
ISBN 978-1-4842-5021-1e-ISBN 978-1-4842-5022-8
© Kunal Relan 2019
Apress Standard
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

Dedicated to caffeine and sugar, my companions through many long night of writing, and extra credits to my mom.

Introduction

Flask is a lightweight microframework for web applications built on top of Python, which provides an efficient framework for building web-based applications using the flexibility of Python and strong community support with the capability of scaling to serve millions of users.

Flask has excellent community support, documentation, and supporting libraries; it was developed to provide a barebone framework for developers, giving them the freedom to build their applications using their preferred set of libraries and tools.

This book takes you through different stages of a REST API–based application development process using flask which explains the basics of the Flask framework assuming the readers understand Python. We’ll cover database integration, understanding REST services, REST APIs performing CRUD operations, user authentication, third-party library integrations, testing, deployment, and application monitoring.

At the end of this book, you’ll have a fair understanding of Flask framework, REST, testing, deploying, and managing Flask applications, which will open doors to understanding REST API development.

Acknowledgments

I would like to thank Apress for providing me this platform, without which this would have been a lot harder. I would also like to thank Mr. Nikhil Karkal for his help and Miss Divya Modi for her perseverance, without whom this would have been a farsighted project.

I’d like to mention about the strong Python community which helped me understand the core concepts in my early years of programming, which inspired me to contribute back to the community with this book.

Last but certainly not the least, I would like to acknowledge all the people who constantly reminded me about the deadlines and helped me write this book, especially my family and Aparna Abhijit for helping me out with editing.

Table of Contents

Index 195

About the Author and About the Technical Reviewer

About the Author

Kunal Relan
../images/479840_1_En_BookFrontmatter_Figb_HTML.jpg
is an iOS security researcher and a full stack developer with more than four years of experience in various fields of technology, including network security, DevOps, cloud infrastructure, and application development, working as a consultant with start-ups around the globe. He is an Alibaba Cloud MVP and author of iOS Penetration Testing (Apress) and a variety of white papers. Kunal is a technology enthusiast and an active speaker. He regularly contributes to open source communities and writes articles for Digital Ocean and Alibaba Techshare.
 

About the Technical Reviewer

Saurabh Badhwar
../images/479840_1_En_BookFrontmatter_Figc_HTML.jpg
is a software engineer with a passion to build scalable distributed systems. He is mostly working to solve challenges related to performance of software at a large scale and has been involved in building solutions that help other developers quickly analyze and compare performance of their systems when running at scale. He is also passionate about working with open source communities and has been actively participating as a contributor in various domains, which involve development, testing, and community engagement. Saurabh has also been an active speaker at various conferences where he has been talking about performance of large-scale systems.
 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.211.66