An open API service indexing awesome lists of open source software.

https://github.com/ajb413/python-desktop-chat-application

A PubNub powered Python chat application for cross-platform desktop.
https://github.com/ajb413/python-desktop-chat-application

chat chat-application cross-platform desktop desktop-app desktop-application desktop-client pyqt pyqt5 python python-chat python-chat-application python-chatroom python3 qt qt5

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Python Desktop Chat Application

A [PubNub](https://www.pubnub.com/?devrel_gh=python-desktop-chat-application) 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](https://github.com/pyqt/examples/tree/_/src/11%20PyQt%20Thread%20example). I made it work with PubNub for the backend messaging.

## Install

- First make a [free PubNub account](https://dashboard.pubnub.com/signup?devrel_gh=python-desktop-chat-application) 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`.

```python
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
```