Gør som tusindvis af andre bogelskere
Tilmeld dig nyhedsbrevet og få gode tilbud og inspiration til din næste læsning.
Ved tilmelding accepterer du vores persondatapolitik.Du kan altid afmelde dig igen.
Build APIs and web apps based on Asynchronous Server Gateway Interface (ASGI). This book provides a comprehensive explanation of using Pydantic models to construct the request/response objects in a FASTAPI path operation. Yoüll start by reviewing type hints in Python and the asynchronous processing concepts. One of the highlights of FastAPI is its auto generation of API docs. Pydantic library is the main pillar on top of which FastAPI is built. Yoüll see that ASGI has a far better performance compared to most of the other popular Python frameworks as they implement Web server Gateway Interface (WSGI), which is synchronous in nature and hence having slower response time. This book thoroughly explains how FastAPI interacts asynchronously with relational as well as NOSQL databases. Modern web apps use template engines to interact with the front-end. In this book, you will learn to use jinja2 templates and static assets. Swagger UI and OpenAPI standards are also covered in detail. Finally, different options of deployment of FastAPI app have been explored in this book. This book uses practical examples to empower you to build high performance APIsWhat You'll LearnDevelop robust and high-performance web appsDeploy the FastAPI app for public availability using cloud services such as Deta and Docker containerUnderstand the important building blocks of a web app such as form handling, templating and database interactionWho This Book Is ForAspiring and the experienced Python developers looking to leverage the flexibility of Python and the powerful features introduced in Modern Python. Computer science Engineering students at graduate and postgraduate level will also benefit immensely from the practical approach adapted in the book.
A practical guide for the rapid web application development with FlaskKey FeaturesExpert-led coverage of core capabilities of Flask, key extensions and its implementation. Explore the Werkzeug toolkit and Jinja Template engine and see how Flask interacts with JavaScript and CSS.Detailed modules on building and deploying RESTful applications using Flask.DescriptionThis book teaches the reader the complete workflow of developing web applications using Python and its most outperforming microframework, Flask.The book begins with getting you up to speed in developing a strong understanding of the web application development process and how Python is used in developing the applications. You will learn how to write your own first Flask-based web application in Python. You will learn about web gateway interfaces, including CGI and WSGI along with various tools like the Jinja 2 engine, Werkzeug toolkit, and Click toolkit. You will learn and practice the core features of Flask such as URL routing, rendering, handling static assets of a web application, how to handle cookies and sessions, and other HTTP objects. Once you have developed a strong knowledge of Flask, you will now dive deeper into advanced topics that includes Flask extensions for working with relational and NOSQL databases, Flask_WTF, and Flask-Bootstrap. You will explore design patterns, various blueprints on how to build modular and scalable applications, and finally how to deploy the RESTful APIs successfully on your own.What you will learnGet to know everything about the core capabilities of Flask.Understand the basic building blocks of Flask.Get familiar with advanced features of Flask, including blueprints, Flask extensions, and database connectivity.Get ready to design your own Flask-based web applications and RESTful APIs.Learn to build modular and scalable applications and how to deploy them successfully.Who this book is forThis book is ideal for Python enthusiasts, open source contributors, and web app developers who intend to add Python web technologies in their skillsets and startup companies. The understanding of the core Python language with intermediate level expertise is required and experience of working with SQL, HTML, CSS, and JavaScript is an added advantage.Table of Contents1. Python for CGI2. WSGI3. Flask Fundamentals4. URL Routing5. Rendering Templates6. Static Files7. HTTP Objects8. Using Databases9. More Flask Extensions10. Blueprints and Contexts11. Web API with Flask12. Deploying Flask Applications13. AppendixAbout the AuthorMalhar Lathkar is an independent software professional, corporate trainer, freelance technical writer, and Subject Matter Expert with an experience of more than three decades. He has trained hundreds of students/professionals in Python, Data Science, Java and Android, PHP and web development, etc.He also has the experience of delivering talks and conducting workshops on various IT topics.He writes regularly in a local newspaper on sports and technology-related current topics.LinkedIn Profile: https: //www.linkedin.com/in/malharlathkarRead mor
Tilmeld dig nyhedsbrevet og få gode tilbud og inspiration til din næste læsning.
Ved tilmelding accepterer du vores persondatapolitik.