Table of Contents
Preface
Part 1:Getting Started with Sanic
Chapter 1: Introduction to Sanic and Async Frameworks
Technical requirements
What is Sanic?
Leveling up
Framework versus server
Web server
Web framework
Why we use Sanic—build fast, run fast
Simple and lightweight
Unopinionated and flexible
Performant and scalable
Production-ready
Trusted by millions
Community-driven
What drives code decisions?
Summary
Chapter 2: Organizing a Project
Technical requirements
Setting up an environment and directory
Environment
Sanic CLI
Directory structure
Using blueprints effectively
Blueprint registration
Blueprint versioning
Grouping blueprints
Wiring it all up
Controlled imports
Factory pattern
Autodiscovery
Running our application
Summary
Part 2:Hands-On ...
Get Python Web Development with Sanic now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.