A PubNub powered Python 3 chat application. It's cross-platform desktop, thanks to PyQt. It sends and recieves chat messages using the PubNub network, so chat messaging is generic for devices/programming languages.
This is a modified version of Michael Herrmann's PyQt5 Example Chat. I made it work with PubNub for the backend messaging.
- First make a free PubNub account to instantly get API keys. It's free up to 1 million messages per month, forever.
- Clone this repository.
- Copy and paste your free PubNub API keys onto line 18 of
chatapp.py
.
pnconfig.publish_key = '__YOUR_PUBNUB_PUBLISH_KEY_HERE__'
pnconfig.subscribe_key = '__YOUR_PUBNUB_SUBSCRIBE_KEY_HERE__'
- Save your code file.
- Navigate to the project directory using your command line application.
- Run this to install Python libraries:
pip3 install -r requirements.txt
python3 chatapp.py