Skip to main content

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

Project description

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

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netchat_app-1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netchat_app-1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file netchat_app-1.0.tar.gz.

File metadata

  • Download URL: netchat_app-1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for netchat_app-1.0.tar.gz
Algorithm Hash digest
SHA256 8b7f934e00a9512f76dafdaf4fd6b7e889bbc3b84a42dda176b69608fcebd9bf
MD5 673b05117f4374e1dc77ac3bb5a76c05
BLAKE2b-256 160e7b47ebe75411aa656ab6c4b0edbf607bf0279e435ecce18b9d81c8c8cd6f

See more details on using hashes here.

File details

Details for the file netchat_app-1.0-py3-none-any.whl.

File metadata

  • Download URL: netchat_app-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for netchat_app-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d75145a9a92054a0f494dcdd1bfc93f18c17f7652469e42b24479b489bed5bf7
MD5 533aa869537b1644c477a3a9c18a7542
BLAKE2b-256 3b75e8e80e910a274bb810b14f2184d9dfdb5b734eb44055a7fe4f75f846d317

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page