netchat
A simple python app that creates a basic chat room in your local network.
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
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
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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| netchat_app-1.0.tar.gz | 8.3 kB | Without provenance | Details for netchat_app-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netchat_app-1.0-py3-none-any.whl | Python 3 | none | any | Details for netchat_app-1.0-py3-none-any.whl |
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
|
Security for netchat-app 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.