wangweimin 5 years ago
parent
commit
a5cdead137
2 changed files with 20 additions and 0 deletions
  1. 14 0
      pywebio/platform/__init__.py
  2. 6 0
      pywebio/session/__init__.py

+ 14 - 0
pywebio/platform/__init__.py

@@ -1,3 +1,17 @@
+r"""
+platform 模块为PyWebIO提供了对不同Web框架的支持。
+
+你可以启动使用不同Web框架的Server,或者获得整合进现有Web框架的必要数据。
+
+
+.. autofunction:: start_server
+.. autofunction:: pywebio.platform.flask.webio_view
+.. autofunction:: pywebio.platform.tornado.webio_handler
+
+"""
+
 from .tornado import start_server, start_server_in_current_thread_session
+from . import flask
+from . import tornado
 
 __all__ = ['start_server']

+ 6 - 0
pywebio/session/__init__.py

@@ -1,3 +1,9 @@
+r"""
+.. autofunction:: run_async
+.. autofunction:: run_asyncio_coroutine
+.. autofunction:: register_thread
+"""
+
 import asyncio
 import inspect
 import threading