ezchat

easy instant chat webapp


Keywords
chat
License
MIT
Install
pip install ezchat==0.0.2

Documentation

ezchat

1 - Summary

ezchat stands for easy chat.

2 - Install

From command line:

pip install ezchat

3 - Notebook

See demo_notebook.
In the notebook, or IPython console, the hub and client servers are launched in detached=True mode to create new terminal windows and thus avoid blocking the notebook.

4 - Command Line

But in command line they can be launched in detached=False after manually creating the terminal windows to

  • Launch Hub and get back to prompt:
from ezchat.servers import hub

h = hub(port=5001, detached=True)
  • Launch Hub in current terminal:
from ezchat.servers import hub

hub(port=5001, detached=False)
  • Launch Client and get back to prompt:
from ezchat.servers import client

c = client(port=5002, detached=True)
  • Launch Client in current terminal:
from ezchat.servers import client

client(port=5002, detached=False)
  • Kill Hub and Clients - if handles availables:
from ezchat.servers import kill

kill(h)
kill(c)