Muutke küpsiste eelistusi

E-raamat: Building REST APIs with Flask: Create Python Web Services with MySQL

  • Formaat - EPUB+DRM
  • Hind: 61,74 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Develop RESTful web services using the Flask micro-framework and integrate them using MySQL. Use Flask to develop, deploy, and manage REST APIs with easy-to-read and understand Python code. Solve your problem from a choice of libraries. Learn to use MySQL as the web services database for your Flask API using SQLAlchemy ORM.

Building REST APIs with Flask provides a primer on Flask, RESTful services, and working with pip to set up your virtual environment. The key differences between NoSQL and SQL are covered, and you are taught how to connect MySQL and Flask using SQLAlchemy. Author Kunal Relan presents best practices for creating REST APIs and guides you in structuring your app and testing REST endpoints. He teaches you how to set up authentication and render HTML using views. You learn how to write unit tests for your REST APIs, and understand mocks, assertions, and integration testing. You will know how to document your REST APIs, deploy your Flask application on all of the major cloud platforms, and debug and monitor your Flask application.




What You'll Learn
  • Use MySQL to create Flask REST APIs 
  • Test REST endpoints
  • Create CRUD endpoints with Flask and MySQL
  • Deploy Flask on all of the major cloud platforms
  • Monitor your Flask application

 

Who This Book Is For

Python developers interested in REST API development using Flask and web developers with basic programming knowledge who want to learn how Python and REST APIs work together. Readers should be familiar with Python (command line, or at least pip) and MySQL.


About the Author ix
About the Technical Reviewer xi
Acknowledgments xiii
Introduction xv
Chapter 1 Beginning with Flask
1(26)
Introduction to Flask
1(3)
Starting Flask
2(1)
Flask Components Covered in This Book
3(1)
Introduction to RESTful Services
4(12)
Uniform Interface
7(1)
Representations
8(1)
Messages
9(3)
Links Between Resources
12(1)
Caching
13(1)
Stateless
13(1)
Planning REST API
14(1)
API Design
15(1)
Setting Up Development Environment
16(8)
Working with PIP
17(1)
Choosing the IDE
18(1)
Understanding Python Virtual Environments
19(5)
Setting Up Flask
24(2)
Installing Flask
25(1)
Conclusion
26(1)
Chapter 2 Database Modeling in Flask
27(32)
Introduction
27(3)
SQL Databases
28(1)
NoSQL Databases
28(1)
Key Differences: MySQL vs. MongoDB
29(1)
Creating a Flask Application with SQLAlchemy
30(16)
Creating an Author Database
33(13)
Sample Flask MongoEngine Application
46(12)
Conclusion
58(1)
Chapter 3 CRUD Application with Flask (Part 1)
59(38)
User Authentication
88(8)
Conclusion
96(1)
Chapter 4 CRUD Application with Flask (Part 2)
97(38)
Introduction
97(1)
Email Verification
98(11)
File Upload
109(5)
API Documentation
114(20)
Building Blocks of API Documentation
115(1)
OpenAPI Specification
116(18)
Conclusion
134(1)
Chapter 5 Testing in Flask
135(24)
Introduction
135(20)
Setting Up Unit Tests
136(3)
Unit Testing User Endpoints
139(16)
Test Coverage
155(2)
Conclusion
157(2)
Chapter 6 Deploying Flask Applications
159(24)
Deploying Flask with uWSGI and Nginx on Alibaba Cloud ECS
160(7)
Deploying Flask on Gunicorn with Apache on Alibaba Cloud ECS
167(5)
Deploying Flask on AWS Elastic Beanstalk
172(4)
Deploying Flask App on Heroku
176(4)
Adding a Procfile
177(3)
Deploying Flask App on Google App Engine
180(2)
Conclusion
182(1)
Chapter 7 Monitoring Flask Applications
183(12)
Application Monitoring
183(11)
Sentry
185(2)
Flask Monitoring Dashboard
187(2)
New Relic
189(3)
Bonus Services
192(2)
Conclusion
194(1)
Index 195
Kunal Relan 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 startups 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.