python uwsgi模块的带有正确签名和docstring的存根文件
uwsgi-stub的Python项目详细描述
这是一个存根文件 python uwsgi module 带有函数签名和docstring。
通常,如果在python应用程序中import uwsgi,编辑器将突出显示 它是一个错误,也不会自动完成任何uwsgi.*函数,因为 只有在uwsgi中运行应用程序时,该模块才可用。
如果希望自动完成和文档字符串 uwsgi模块。
请注意,ImportError在导入uwsgi存根模块时仍会引发 因此,您可以保存地安装它以便自动完成,并且仍然使用您的
try:importuwsgi# do stuff with uwsgi module hereexceptImportError:# do alternative things if not running in uwsgi
安装
使用pip或easy_install从pypi安装。
$ pip install uwsgi-stub
用法
只需在编辑器中import uwsgi,即可享受uwsgi docstrings和自动完成功能。
1.1
- 添加websocket_*函数定义
1.0
- 首次发布