https://github.com/bradmontgomery/zerochat
a stupid simple command-line chat server and client using zeromq
https://github.com/bradmontgomery/zerochat
chat command-line pubsub python zeromq
Last synced: 9 days ago
JSON representation
a stupid simple command-line chat server and client using zeromq
- Host: GitHub
- URL: https://github.com/bradmontgomery/zerochat
- Owner: bradmontgomery
- License: mit
- Created: 2013-07-15T04:19:55.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T22:45:40.000Z (over 2 years ago)
- Last Synced: 2025-04-24T00:44:13.323Z (9 days ago)
- Topics: chat, command-line, pubsub, python, zeromq
- Language: Python
- Size: 15.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# zerochat
A very simple, command-line chat server and client using zeromq.
## features
- clients subscibe to a _channel_; they only see messages on that channel
- non-blocking input on the terminal## architecture
- clients push a message to the server
- the server then publishes that message
- clients subscribe to published messages, filtering on the channel```
[client] ---(push a message)---> [server]
/ | \
/ | \
(publish message to subscribers)
/ | \
/ | \
[client] | \
| [client]
[client]
```## usage
Check out the code, then run one of the following:
- To run the server: `python zerochat/server.py`
- To run the client: `python zerochat/client.py -u my_username`You can see more options with:
- `python zerochat/server.py -h`.
- `python zerochat/client.py -h`.## about
this is just a fun, little weekend project that lets me play with
[zeromq](https://zeromq.org) (which is pretty awesome).## license
MIT. See the [`LICENSE.txt` file](LICENSE.txt).