Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/howie6879/Sanic-For-Pythoneer
📚 一份sanic使用教程,开源小书
https://github.com/howie6879/Sanic-For-Pythoneer
book sanic sanic-book sanic-explore sanic-for-pythoneer
Last synced: about 2 months ago
JSON representation
📚 一份sanic使用教程,开源小书
- Host: GitHub
- URL: https://github.com/howie6879/Sanic-For-Pythoneer
- Owner: howie6879
- Created: 2017-07-23T06:51:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T10:36:46.000Z (about 2 months ago)
- Last Synced: 2024-07-26T12:03:30.899Z (about 2 months ago)
- Topics: book, sanic, sanic-book, sanic-explore, sanic-for-pythoneer
- Language: Python
- Homepage: https://www.howie6879.cn/sanic_book/
- Size: 2.15 MB
- Stars: 392
- Watchers: 21
- Forks: 99
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Documentation Status](https://readthedocs.org/projects/sanic-for-pythoneer/badge/?version=latest)](http://sanic-for-pythoneer.readthedocs.io/en/latest/)
## Sanic-For-Pythoneer
- 这是一份记录文档,是我日常使用`Sanic`的一些经验之谈,希望能让你在使用Sanic的过程中少走一些弯路
- 可根据需求跳跃阅读
- 在线阅读[地址](https://www.howie6879.cn/sanic_book/)### 1.介绍
[Sanic](https://github.com/channelcat/sanic)是一个可以使用 `async/await` 语法编写项目的异步非阻塞框架,它写法类似于`Flask` ,但使用了异步特性,而且还使用 `uvloop` 作为事件循环,其底层使用的是**libuv**,从而使 `Sanic` 的速度优势更加明显
我于2017年2月份开始使用 `Sanic`,使用过程中确实遇到不少问题,如缓存、模板引入、session、认证...
但不用担心,`Sanic` 更新速度非常快,许多问题都在逐步地解决中,并且比同类别更出色更优秀,个人觉得 `Sanic` 是一个值得尝试的异步框架,不论是代码编写还是性能比较都算非常不错
本项目的结构如下:
**第一部分:技巧**
- [x] [1.初使用](./docs/part1/1.初使用.md)
- [x] [2.配置](./docs/part1/2.配置.md)
- [x] [3.项目结构](./docs/part1/3.项目结构.md)
- [x] [4.展示一个页面](./docs/part1/4.展示一个页面.md)
- [x] [5.数据库使用](./docs/part1/5.数据库使用.md)
- [x] [6.常用的技巧](./docs/part1/6.常用的技巧.md)
- [x] [7.可靠的扩展](./docs/part1/7.可靠的扩展.md)
- [x] [8.测试与部署](./docs/part1/8.测试与部署.md)**第二部分:源码及附录**
- [x] [Sanic源码阅读:基于0.1.2](./docs/part2/Sanic源码阅读:基于0.1.2.md)
- [x] [附录:关于装饰器](./docs/part2/附录:关于装饰器.md)### 2.更新
代码的世界变幻莫测,我能做的就是尽量将本篇文档持续更新、持续修正、让其处于当前最新的状态
### 3.说明
如果您在使用中有什么不明白的问题,欢迎一起交流(扫码关注,发送:Sanic可获取本书PDF版):
我也创建了一个免费的Python知识星球,欢迎大家一起交流: