netchat
A simple python app that creates a basic chat room in your local network.
[!WARNING] netchat is not a secure chatting app. This is nothing but a small project I made alone for my computer science class. Do not use it to discuss sensitive informations.
Getting Started
Prerequisites
- Python ≥ 3.6
Installation and Usage
Installing via PyPI
You can install this project using PyPI:
$ pip install netchat-app
Then to run it, execute the following in the terminal:
$ netchat
You can also use the command
netchat-app.
If you have more than one version of Python installed, you can use
python -m netchatinstead ofnetchat.
Installing via GitHub
$ git clone https://github.com/samuellouf/netchat.git
$ cd netchat
$ pip install .
Then to run it, execute the following in the terminal:
$ netchat
[!IMPORTANT] To uninstall it, run
pip uninstall netchat-app
Running Locally via Github (no install)
You can run this project locally by following these steps:
- Clone/download the repo
- Open cmd/terminal and cd into the project's root folder
- Execute
python -m pip install -r requirements.txt - Execute
python -m netchat_appto run the application
Using netchat
[!IMPORTANT] Your OS's firewall might ask for your permission to let Python local networks. You need to accept this.
First, you need to run netchat (netchat or netchat-app).
On the machine running netchat
- Open the server's adress in your navigator (it is probably
http://127.0.0.1:5000). - Create an account
And that's it! You have your account and you can start chatting.
On an other machine in the same network
- Check that netchat is running on all adresses (0.0.0.0)
- Unless you have used the
--hostargument, netchat should already be accessible by the network
- Unless you have used the
- Get the IP adress of the machine running netchat and the port it is running on
- If you have opened netchat's gui on the server, the IP and port should be displayed at the top of the page.
- Open the server in your navigator (
http://[server ip]:[port]/) - Create an account
You now have your account and you can start chatting.
Arguments
You can get all of these informations by using the help flag: netchat --help
| Argument | Description |
|---|---|
| -h, --help | shows a help message and exit |
| -v, --version | show netchat's version number and exit |
| --host [HOST] | the hostname to listen on. default is 0.0.0.0 to make the server available to the whole network. |
| -p [PORT], --port [PORT] | the port to serve on. default is 5000. |
| -d, --debug | debug informations in the navigator |
Contributing
If you ever want to contribute, simply open a pull request explaining.
I will probably add some new features in a while.
Issues & Bugs
If you found an issue or bug, don't hesitate to report it here.
Btw, I took this readme's structure from auto_py_to_exe
Release files for netchat-app 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netchat_app-1.0.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netchat_app-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.0 kB
Release files / netchat_app-1.0.tar.gz
| Download URL | netchat_app-1.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b7f934e00a9512f76dafdaf4fd6b7e889bbc3b84a42dda176b69608fcebd9bf
|
|
BLAKE2b-256 checksum How to use checksums |
160e7b47ebe75411aa656ab6c4b0edbf607bf0279e435ecce18b9d81c8c8cd6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|
Release files / netchat_app-1.0-py3-none-any.whl
| Download URL | netchat_app-1.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d75145a9a92054a0f494dcdd1bfc93f18c17f7652469e42b24479b489bed5bf7
|
|
BLAKE2b-256 checksum How to use checksums |
3b75e8e80e910a274bb810b14f2184d9dfdb5b734eb44055a7fe4f75f846d317
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|