Skip to main content

netchat

A simple python app that creates a basic chat room in your local network.

PyPI Version License Supported Platforms

[!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 netchat instead of netchat.

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:

  1. Clone/download the repo
  2. Open cmd/terminal and cd into the project's root folder
  3. Execute python -m pip install -r requirements.txt
  4. Execute python -m netchat_app to 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

  1. Open the server's adress in your navigator (it is probably http://127.0.0.1:5000).
  2. Create an account

And that's it! You have your account and you can start chatting.

On an other machine in the same network

  1. Check that netchat is running on all adresses (0.0.0.0)
    • Unless you have used the --host argument, netchat should already be accessible by the network
  2. 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.
  3. Open the server in your navigator (http://[server ip]:[port]/)
  4. 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)

Source distribution for netchat-app 1.0
File Size Uploaded
netchat_app-1.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netchat-app 1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page