eeechoo / blogs

个人博客
0 stars 0 forks source link

WSGI #19

Open eeechoo opened 5 years ago

eeechoo commented 5 years ago

werkzeug http://python.jobbole.com/tag/werkzeug/

wsgi http://python.jobbole.com/tag/wsgi/

通过对 werkzeug 实例代码打断点 第一次完整了解了 werkzeug 中第一个知识点 WSGI 。 (将来有空了 可以去分析 wsgiref 这个库)

通过 pypi 看到 wsgiref 的作者是Phillip J. Eby, 而这正是 PEP 333、PEP 3333 作者。 带评论版本 PEP 3333

阅读过程中遇见的问题: 什么是CGI? http://python.jobbole.com/85400/

https://docs.python.org/3/library/cgi.html http://www.runoob.com/python/python-cgi.html

eeechoo commented 5 years ago

flask

flask run 这个命令是如何实现的? https://github.com/pallets/flask/blob/86bf9dca72cd188813e26ef5dd972101ef8983cf/flask/cli.py#L735

eeechoo commented 5 years ago

https://docs.python.org/3.7/library/stdtypes.html?highlight=format#printf-style-string-formatting https://docs.python.org/3.7/library/stdtypes.html?highlight=format#str.format https://docs.python.org/3.7/library/string.html#string.Template

string.Template与str.format()为什么同时存在? https://segmentfault.com/q/1010000006709792

flask session 原理
hmac 只能对数据进行签名防止篡改 http://python.jobbole.com/87450/

eeechoo commented 5 years ago

SocketServer ——网络通信服务器 http://python.jobbole.com/88626/ https://docs.python.org/3/library/socketserver.html#module-socketserver

HttpServer https://www.sunzhongwei.com/python3-simplehttpserver-function?from=sidebar_new http://python.jobbole.com/88637

wsgiref 源码解析 http://python.jobbole.com/87390/

eeechoo commented 5 years ago

http://python.jobbole.com/88653/

eeechoo commented 5 years ago

python web 服务器 http://python.jobbole.com/81523/