A very good book recommendations Flask - Flask Web development actual combat

If you want to know the latest developments of this book, you can visit the book page http://helloflask.com/book . You can also get e-book related information and source code from the Baidu network disk address:
link: https://pan.baidu.com/s/1vc2pOd7LKUkUc8A8TXX14g
extraction code: k2y4

Meanwhile, welcome to join HelloFlask Forum, QQ group (419,980,814), micro-channel group (Remarks "the group") or Telegram group discussions related topics.

Why say this is a very good book Flask

Flask several existing book contains the following questions:

  • Older content, whether Flask itself, or other extensions and Python libraries.
  • Code contains errors or incomplete implementation, such as the establishment of a database relations using SQLAlchemy, for performance reasons, and is generally not the way to record load relationship dynamic.
  • The sample program is too simple, not even delete posts such functions.
  • Content relatively simple, containing only getting started.

In contrast, this "Flask Web development actual combat: Starter, Advanced and principles resolved" Of course, to avoid the above problems:

  • Flask use the latest version 1.0.2, using the sample program relies Pipenv management, extensions and all other Python libraries are using the latest version. Moreover, the front-end framework Bootstrap (4.1) used in the project, Materialize (1.0) and Semantic-UI (2.3) also are using the latest version.
  • It corrects common errors, and prompt in its place.
  • Comprising a plurality of different levels of complexity of the sample program, as much as possible so that the program close to real usage.
  • As shown in the sub-title of this book in addition to the basic introductory knowledge, but also includes advanced content and principles resolved.

See the title, your first thought might be: Why book title and Miguel Grinberg so like? Since the title is not determined by a person I am, and named technical book is not much freedom, you should not only consider joining the right keywords, but also consider how to highlight the main features of the book. "Flask Web development" is indeed simple and focused good name, we added the "real" in the back, to reflect the focus of this book is the most important feature.

main feature

  • China's first Flask of this book, covering the complete contents of Flask Web development on the path of learning, in practice contains a complete Flask Web application development process. Compatible Python2.7 and Python3.6.
  • Latest content, based on Flask version 1.0.2, all Python libraries, frameworks and JavaScript front-end libraries are using the latest version.
  • Comprehensive, in addition to the basics, also includes Web API, full-text search, internationalization and localization, third-party login, AJAX, WebSocket, source code analysis, and other useful extensions written content.
  • Real strong, comprising eight sample program, real items 5 and an extension Flask. Real items include message boards, personal blog, pictures social networking sites, chat rooms and to-do program, corresponding to different points of knowledge, increasing difficulty.
  • Git label five practical projects carefully set, each label corresponds to a new program features.
  • All sections of the book have been carefully design and layout, to meet the needs of different levels of readers, and let the reader step by step to develop the knowledge and skills to master the Flask.
  • Explain complex knowledge through rich graphics and code examples, try to make it easy to understand.

For the audience

This book is for readers as follows:

  • Learn Python basic syntax, you want to make their own programming enthusiasts site
  • Familiar with Python, Python Web developers want to engage in back-end engineers, operation and maintenance engineers and engineers reptiles
  • Flask of engineers who want to migrate from other Python Python Web frameworks such as Django

The book does not contain an introduction to the basics of Python, so readers need to have prior knowledge of basic Python syntax. In addition, Web developers inevitably involve HTML, CSS and JavaScript knowledge, if you are not familiar with these, can be provided by MDN Web developers introductory tutorial to learn, simple to understand.

Three recommended language

This book is informative and recommend it to people who want to learn the system of Flask. Do not miss the little knowledge of the book, oh.

- Flask development team (Pallets) core defenders Hsiaoming Yang (lepture)

This "Flask Web Development combat" is very interesting, is able to bring a book to help the reader, as a lover Flask framework, and I'm looking forward to publication of this book.

- "Redis Design and Implementation" by Huang Jianhong (huangz)

Grey Li is a really helpful contributor to Flask and the Python community. He is making it easier for more people to learn and use Flask.

- Flask development team (Pallets) central defenders David Lord (davidism)

8 sample program, projects Example 5, an expansion

Contains a wealth of examples is the most important feature of this book, which is why should the "real" put in the title.

The first part (Basic) 6 chapters, each chapter contains a sample program book, sample program contains most of the code involved in each chapter, you can actually run the program to see the effect. To Chapter 5, "Database", in addition to a simple demonstration outside "check additions and deletions to change," the program notes, sample program also includes "one to many", "many", "one", "many many "," one to many relationship + bi "," one to many two-way relationship + + use backref simplified relationship definition "," arranged in cascade "" database event listener function ", 15 (7 * 2 + 1) th model class definitions, and two event listener function (implemented in two ways).

The second part (actual combat piece) a total of five chapters, each chapter through a program to organize all the knowledge points. The five programs are: message boards SayHello, personal blog Bluelog, pictures social networking sites Albumy, to-do program Todoism and chat rooms CatChat. You can following "section outlines" section to view the knowledge of each sample program involved.

Part III (Advanced chapter) Chapter 13, "Performance Tuning" by two instances of a program to introduce the use of Flask-Caching and Flask-Assets add cache and compared before and after the change of static resource optimization Flask program. Chapter 15 "Flask Extension Development" is a simple addition to the page Flask-Share extension of social sharing components to create a complete description of the Git repository to use twine package will be uploaded to PyPI full expansion through the development process.

Meet 80% of the readers proposal

In the article "Flask wrote a book," many Friends of Scouting through comments and suggestions are given content want to see. I made a simple collection and processing, glancing through, about 80% of the readers proposals have been met.

Rich in content, about 700

This book introduces the basics, but also introduced a number of advanced techniques. The first part from Chapter 2 begins each chapter contains an "Advanced Practice" section, which contains some common skills, such as "How safe Jump Back", "Using the built-in Chinese WTForms form the error message" "database event listener", and specifically refer to the following "catalog" section.

In addition, the book also introduces some other overlooked Flask book, but very practical knowledge, such as the way Flask JavaScript and AJAX interaction data to achieve, through information pop AJAX implementation, dynamic attention in pop in Favorites button, AJAX achieve a simple one-page through the program, real-time two-way communication, internationalization and localization, full-text search, a third-party login, Markdown support, code syntax highlighting, cutting head, set the cache and so on.

This book will try to provide more technology selection, such as Chapter 6, "e-mail", in addition to introduce the use Flask-Mail realize sending e-mail, also describes the use of transactional mail service SendGrid two ways to send e-mail; the first Chapter 14, "deployed on the line," I introduced a basic server initialization process, including installation and basic library, set up SSH key, set to deploy firewall, then is Gunicorn, Nginx and Supervisor of the use. In addition to the deployment of Linux, also introduced the use of PythonAnywhere and Heroku deployment process.

Section outlines

The following is a summary of this book, simply describes the contents of each chapter, you can use the following "Directory" section for details. The book consists of four parts, namely basic articles, actual articles, Advanced chapter and appendix, a total of 16 chapters. Chapters of the book in carefully designed, to let the reader step by step to master the basic knowledge and skills to develop Flask.

Part I: Basics describes Flask related to the development of basic knowledge.

  • Chapter 1: setup the development environment, write a minimum of Flask program and run it, Flask understand the basics.
  • Chapter 2: The Flask interact with HTTP Flask and related functions.
  • Chapter 3: Using the skills and Jinja2 template.
  • Chapter 4: Verify Web form creation and form data.
  • Chapter 5: establish relations of various databases using the database CRUD operations in Flask program.
  • Chapter 6: Send e-mail programs in several ways Flask, Flask-Mail sent by using SMTP server, or through transactional mail service SendGrid (SMTP and Web API in two ways).

Part II: Flask actual articles to introduce the development of various types of functions and skills achieved through a few sample programs.

  • Chapter 7: through a simple message board procedures SayHello introduce Web developers basic flow and basic project management, basic knowledge of the first part of a simple review, and finally introduced the use Faker, Flask-Moment and Flask-DebugToolbar of .
  • Chapter 8: Introduction CRUD operations, user authentication (Flask-Login), article comments and replies, background management functions, which also includes website theme change, rendering navigation links and other tips through a personal blog program Bluelog.
  • Chapter 9: Image social program Albumy introduce user registration and authentication, user rights management, image upload (Flask-Dropzone) and treatment (Pillow), user avatars, complex database relationships, complex database queries, full-text search (Flask- Whooshee) and so on.
  • Chapter 10: The to-do program Todoism introduce single-page application, internationalization and localization (Flask-Babel), Web API, OAuth server-side implementation and so on.
  • Chapter 11: via the chat room program CatChat introduce Websocket applications (real-time two-way communication, achieved through Flask-SocketIO), OAuth client implementation (third-party login, achieved through Flask-OAuthlib), Markdown support (markdown), code syntax highlighting (pygments) and so on.

Part III: Advanced article describes Flask program deployment process: testing, performance optimization, deployment of on-line; development of advanced topics introduced Flask: Flask Flask extension developer and source and mechanism analysis.

  • Chapter 12: Introduction Flask program of automated testing, including unit testing and write UI tests, calculate test coverage and code quality checks.
  • Chapter 13: Flask program to be key measures of performance optimization, including functions and database query performance analysis, use of the cache (Flask-Caching), static files optimization (Flask-Assets).
  • Chapter 14: The pre-deployment preparation Flask program, and the deployment process to complete the Linux server and cloud platform Heroku, PythonAnywhere of.
  • Chapter 15: via expansion Flask-Share to introduce written Flask extension of the complete process, from creating the project to be uploaded to PyPI.
  • Chapter 16: The Flask some design ideas, including relevant underlying implementation of WSGI, and all the major functions of point-source analysis.

table of Contents

Complete catalog please visit http://helloflask.com/book/contents view.

Original articles published 0 · won praise 0 · Views 1139

Guess you like

Origin blog.csdn.net/wyf0903/article/details/104500923