Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ajb413/python-socket-demo

Socket programming demo with native Python and also PubNub.
https://github.com/ajb413/python-socket-demo

peer-to-peer pubnub python python-socket python-sockets socket-programming sockets

Last synced: about 2 months ago
JSON representation

Socket programming demo with native Python and also PubNub.

Awesome Lists containing this project

README

        

# Sockets with Python

Send data from client to server using Python sockets in **client.py** and **server.py**.

Send data from peer to peer (client to client) using PubNub with **pn_client_1.py** and **pn_client_2.py**.

Install the PubNub package with pip (lastest as of 01/2019):
```bash
pip install 'pubnub>=4.1.2'
```

You **must** put in your **free** PubNub API keys to use **pn_client_1.py** and **pn_client_2.py**. Sign up at [https://dashboard.pubnub.com/signup](https://dashboard.pubnub.com/signup/?devrel_gh=ajb413-python-socket-demo)

Watch the tutorial video or read guide in the [Python Socket Programming Tutorial PubNub Blog post](https://www.pubnub.com/blog/socket-programming-in-python-client-server-p2p/?devrel_gh=ajb413-python-socket-demo).