Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalebu/commandline-chatting-system-python
A simple CLI chat application made in Python using sockets
https://github.com/kalebu/commandline-chatting-system-python
python python-cli-project python-projects python-socket-client python-socket-programming python-socket-server python-sockets python-tanzania
Last synced: 1 day ago
JSON representation
A simple CLI chat application made in Python using sockets
- Host: GitHub
- URL: https://github.com/kalebu/commandline-chatting-system-python
- Owner: Kalebu
- Created: 2019-09-10T08:24:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T10:58:00.000Z (over 3 years ago)
- Last Synced: 2023-03-04T00:01:40.426Z (over 1 year ago)
- Topics: python, python-cli-project, python-projects, python-socket-client, python-socket-programming, python-socket-server, python-sockets, python-tanzania
- Language: Python
- Homepage: https://kalebujordan.com/chat-application-python/
- Size: 4.88 KB
- Stars: 15
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Commandline chat app in Python
Intro
------------Hi Guys this repo consist of a source code for a simple CLI chatting app made using sockets in Python
The original article
----------------------This repo is continuation of an [Article](https://kalebujordan.com/chat-application-python/) on [my blog](https://kalebujordan.com/) so you might wanna review it to see a more brief tutorial on how it all works out.
Getting started
--------------------To get started just clone the repository using *git* command or pressing download button option at the right side of the repository
**Cloning**
```bash
$ git clone https://github.com/Kalebu/Commandline-chatting-system-python
$ cd Commandline-chatting-system-python
Commandline-chatting-system-python $ tree
.
├── client.py
├── README.md
└── server.py0 directories, 3 files
```This repo consist of two **Python scripts** named *client.py* and *server.py*as I have explained on the tutorial, whereby **server.py** will serve as our server node and **client.py** will serve as our client node.
Running our scipt
------------------**Note**
You should start running the server script before running the client script because if you do otherwise, the client will exit immediately as result of not finding a server node to connect
**running server.py**
```bash
$ python server.py```
**running client.py**
```bash
$ python client.py
Enter server_ip: 127.0.0.1
Finding connection
Connection succesful made to the server
```**Note**
If the server script is run on the different pc or laptop enter your server pubic IP on client **enter ip** prompt
Explore it
-----------------Now youre script should be running and able to communicate with each other, you try writing message to any of those script and then press enter to send the message to the another node whether it's server or client
Give it a star
--------------
Did you find this information useful, then give it a starCredits
-----------
All the credits to [kalebu](github.com/kalebu)