Flask: Building Python Web Services
by Gareth Dwyer , Shalabh Aggarwal , Jack Stouffer
B0722JYY9D
Print Length 页数: 770 pages
Publisher finelybook 出版社: Packt Publishing (31 Mar. 2017)
Language 语言: English
ISBN-10: 1787288226
ISBN-13: 9781787288225
Unleash the full potential of the Flask web framework by creating small to large and powerful web applications
About This Book
Create your own world-class applications and master the art of Flask by unravelling its enigma through this journey
Packed with recipes containing lots of sample applications to help you understand the intricacies of Flask web programming
Work with scalable Flask application structures to create complex web apps
Who This Book Is For
This learning path is ideal developers who know the basics of Python and want to learn how to use the Flask framework to build powerful web solutions in Python.
What You Will Learn
Build three web applications from the ground up using the powerful Python micro framework,Flask.
Extend your applications to build advanced functionality,such as a user account control system using Flask-Login
Learn about web application security and defend against common attacks,such as SQL injection and XSS
Integrate with technologies like Redis,Sentry,MongoDB and so on
Build applications with integrations to most of the login mechanisms available
Don’t just stop at development. Learn about deployment and post-deployment
Use SQLAlchemy to programmatically query a database
Develop a custom Flask extension
In Detail
Are you a fan of Python? Want to use it to create powerful web applications? Then Flask is the perfect choice for you. This course will take you through the intricacies of the Flask Microframework,covering all it’s components and elements and how to integrate it with useful third party libraries. Dive deep into what Flask has to offer and then you will create multiple Python apps from scratch on your own.
The first module will introduce you to web development using Flask to building fully functional web applications. Hands-on and pragmatic,this tutorial goes right to the crux of Flask by showing you how to build challenging real-world applications.
The second module introduces you to a number of recipes that will help you understand the power of Flask and its extensions. Start by seeing the different configurations that a Flask application can make use of. By the end of this module,you will have gained all the knowledge required to write Flask applications in the best possible way,and scale them with best practices.
The final module will walk you through advanced Flask topics while providing practical examples of for all your lessons learned. The module closes with a discussion of the different platforms that are available to deploy a Flask app on,the pros and cons of each one,and how to deploy on each one.
This Learning Path combines some of the best that Packt has to offer in one complete,curated package. It includes content from the following Packt products:
Flask By-Example: Gareth Dwyer
Flask Framework Cookbook: Shalabh Aggarwal
Mastering Flask: Jack Stouffer
Style and approach
Filled with practical examples and recipes,this course is a great combination of example-driven learning complemented by exciting techniques to build powerful Python web applications with the Flask framework
Contents
1. Module 1
1. Hello,World!
2. Getting Started with Our Headlines Project
3. Using Templates in Our Headlines Project
4. User Input for Our Headlines Project
5. Improving the User Experience of Our Headlines Project
6. Building an Interactive Crime Map
7. Adding Google Maps to Our Crime Map Project
8. Validating User Input in Our Crime Map Project
9. Building a Waiter Caller App
10. Template Inheritance and WTForms in Waiter Caller Project
11. Using MongoDB with Our Waiter Caller Project
2. Module 2
1. Flask Configurations
2. Templating with Jinja2
3. Data Modeling in Flask
4. Working with Views
5. Webforms with WTForms
6. Authenticating in Flask
7. RESTful API Building
8. Admin Interface for Flask Apps
9. Internationalization and Localization
10. Debugging,Error Handling,and Testing
11. Deployment and Post Deployment
12. Other Tips and Tricks
3. Module 3
1. Getting Started
2. Creating Models with SQLAlchemy
3. Creating Views with Templates
4. Creating Controllers with Blueprints
5. Advanced Application Structure
6. Securing Your App
7. Using NoSQL with Flask
8. Building RESTful APIs
9. Creating Asynchronous Tasks with Celery
10. Useful Flask Extensions
11. Building Your Own Extension
12. Testing Flask Apps
13. Deploying Flask Apps
通过创建小到大和强大的Web应用程序,充分发挥Flask Web框架的全部潜力
关于这本书
创建自己的世界级应用程序,掌握Flask的艺术,通过这次旅程揭开谜底
包含许多示例应用程序的配方,以帮助您了解Flask Web编程的复杂性
使用可扩展的Flask应用程序结构来创建复杂的Web应用程序
这本书是谁
这个学习路径是了解Python基础知识的理想开发人员,并希望学习如何使用Flask框架在Python中构建强大的Web解决方案。
你会学到什么
使用强大的Python微框架Flask从头开始构建三个Web应用程序。
扩展您的应用程序以构建高级功能,例如使用Flask-Login的用户帐户控制系统
了解Web应用程序安全性,防范常见攻击,如SQL注入和XSS
与Redis,Sentry,MongoDB等技术相结合
构建可集成大多数可用登录机制的应用程序
不要只停止在开发。了解部署和后期部署
使用SQLAlchemy以编程方式查询数据库
开发自定义Flask扩展
详细
你是Python的粉丝吗?想要使用它来创建强大的Web应用程序?然后Flask是您的完美选择。本课程将介绍Flask Microframework的复杂性,涵盖所有组件和元素,以及如何将其与有用的第三方库集成。深入了解Flask所提供的内容,然后您将自动从头创建多个Python应用程序。
第一个模块将向您介绍使用Flask构建功能齐全的Web应用程序的Web开发。实践和务实,本教程将展示给Flask的关键,向您展示如何构建具有挑战性的现实世界应用程序。
第二个模块向您介绍了一些帮助您了解Flask及其扩展功能的配方。首先看看Flask应用程序可以使用的不同配置。在本单元的最后,您将获得所有必要的知识,以最好的方式编写Flask应用程序,并以最佳实践进行扩展。
最后一个模块将引导您完成先进的Flask主题,同时提供所有经验教训的实际示例。该模块关闭了可用于部署Flask应用程序的不同平台的讨论,每个平台的优缺点以及如何在每个平台上部署。
这个学习路径结合了Packt在一个完整的,策划的包中提供的一些最好的。它包含以下Packt产品的内容:
Flask By-Example: Gareth Dwyer
Flask框架菜谱: Shalabh Aggarwal
掌握烧瓶: Jack Stouffer
风格和方法
填写实用的示例和食谱,本课程是一个很好的组合示例驱动的学习,辅以激动人心的技术,使用Flask框架构建强大的Python Web应用程序
目录
模块1
你好,世界!
2.开始我们的头条项目
3.在我们的标题项目中使用模板
4.我们的标题项目的用户输入
5.提高我们头条项目的用户体验
6.建立互动犯罪地图
7.将Google地图添加到我们的犯罪地图项目
8.验证我们的犯罪地图项目中的用户输入
9.建立服务员来电者应用程序
10.服务员来电者项目中的模板继承和WTForms
11.使用MongoDB与我们的服务员来电者项目
模块2
烧瓶配置
2.与Jinja2模板
烧瓶中的数据建模
4.使用意见
Webforms与WTForms
在Flask认证
7. RESTful API构建
8. Flask应用程序的管理界面
9.国际化与本地化
10.调试,错误处理和测试
11.部署和后期部署
其他提示和技巧
3.模块3
入门
2.使用SQLAlchemy创建模型
3.使用模板创建视图
4.创建具有蓝图的控制器
5.高级应用结构
6.保护您的应用程序
使用NoSQL与Flask
8.构建RESTful API
9.用Celery创建异步任务
有用的Flask扩展
建立自己的扩展
12.测试Flask应用程序
13.部署Flask应用程序
Flask: Building Python Web Services
未经允许不得转载:finelybook » Flask: Building Python Web Services
相关推荐
- TradeStation EasyLanguage for Algorithmic Trading: Discover real-world institutional applications of Equities, Futures, and Forex markets
- Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases, 4th Edition
- Strategic Leadership in Responsive Web Design: A tech leader’s guide to achieving business excellence by adopting responsive web design
- System Design Guide for Software Professionals: Build scalable solutions – from fundamental concepts to cracking top tech company interviews
- Technical Program Manager’s Handbook: Unlock your TPM potential by leading technical projects successfully and elevating your career path, 2nd Edition
- The Ultimate Linux Shell Scripting Guide: Automate, Optimize, and Empower tasks with Linux Shell Scripting