简易即时聊天网页应用
项目描述
ezchat
======
| **ezchat** 代表简易聊天。
| + 无装饰的Python聊天应用。 + 即时设置。
| 从笔记本或命令行运行。
| 在这两种情况下,都会创建新的独立进程。
1 - 笔记本
~~~~~~~~~~~~
见
`demo\_notebook <http://nbviewer.jupyter.org/urls/gitlab.com/oscar6echo/ezchat/raw/master/demo_ezchat.ipynb>`__。
2 - 命令行
~~~~~~~~~~~~~~~~
- 启动Hub
.. code:: python
from ezchat.servers import hub
h = hub(port=5001)
- 启动客户端
.. code:: python
from ezchat.servers import client
c = client(port=5002)
- 终止Hub和客户端
.. code:: python
from ezchat.servers import kill
kill(h)
kill(c)
.. raw:: html
======
| **ezchat** 代表简易聊天。
| + 无装饰的Python聊天应用。 + 即时设置。
| 从笔记本或命令行运行。
| 在这两种情况下,都会创建新的独立进程。
1 - 笔记本
~~~~~~~~~~~~
见
`demo\_notebook <http://nbviewer.jupyter.org/urls/gitlab.com/oscar6echo/ezchat/raw/master/demo_ezchat.ipynb>`__。
2 - 命令行
~~~~~~~~~~~~~~~~
- 启动Hub
.. code:: python
from ezchat.servers import hub
h = hub(port=5001)
- 启动客户端
.. code:: python
from ezchat.servers import client
c = client(port=5002)
- 终止Hub和客户端
.. code:: python
from ezchat.servers import kill
kill(h)
kill(c)
.. raw:: html