Skip to content

A PubNub powered Python chat application for cross-platform desktop.

Notifications You must be signed in to change notification settings

ajb413/python-desktop-chat-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Desktop Chat Application

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.

PubNub Desktop Python Chat Application Example

This is a modified version of Michael Herrmann's PyQt5 Example Chat. I made it work with PubNub for the backend messaging.

Install

  • 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

Run the Python Chat App

python3 chatapp.py