Skip to main content

Local network chat messaging application

Project description

Unit tests Pylint License: MIT

pychatter

pychatter is a direct chat tool, which may be run to communicate over a local network.

Gif of the application GUI

Communication happens over the localhost port 8080.

This is primarily an exercise in duplex client-server communication using websockets.

Getting started

To get a copy of this repository, simply open up git bash in an empty folder and use the command:

$ git clone https://github.com/rbaltrusch/pychatter

To install all python dependencies, run the following in your command line:

python -m pip install -r requirements.txt

To run the application, run the package from the root repository directory:

python -m pychatter

Hosting a chat server can be done directly inside the graphical user interface, or a dedicated server may be started from the command line using:

python -m pychatter --server

Configuration

The chat application supports external configuration files. Place a file named config.json in the directory from which the application is run.

The configuration file currently supports one setting, "chat_format", which is used to display chat messages. It supports the following placeholder strings:

  • %T: time
  • %U: user name
  • %M: message

An example config.json could contain the following data:

{
	"chat_format": "%T: %U: %M"
}

Tests

To run tests, change to the tests directory, then run run_tests.py:

cd tests
python run_tests.py

Contributions

To contribute to this repository, please read the contribution guidelines.

Python

Written in Python 3.7.3.

License

This repository is open-source software available under the MIT License.

Contact

Please raise an issue for code changes. To reach out, please send an email to richard@baltrusch.net.

Attributions

Icons made by Freepik from www.flaticon.com.

Project details


Download files

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

Source Distribution

pychatter-0.1.0.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

pychatter-0.1.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file pychatter-0.1.0.tar.gz.

File metadata

  • Download URL: pychatter-0.1.0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for pychatter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a32895bf7f35d9ccac3e0df26310a522a60befb27016658179bdd10a0a1d5c2
MD5 5a4d094c4f8a8fe9ceccf5f48ceb694e
BLAKE2b-256 ed0ab7f6be71e73f6e51a427e038d42b0df409a8fa7aa60dba652db62ceb2674

See more details on using hashes here.

Provenance

File details

Details for the file pychatter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pychatter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pychatter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e113c07c9bc5b82cb5ecfa367d9f93966a582b21d1c1e95357e088849a88a257
MD5 7abdc218cd1d8826a1d26ffc77c3745c
BLAKE2b-256 e167cae79381b47bd30a148de38399e518c279ab7f4d7da398cec99cd116ad2a

See more details on using hashes here.

Provenance

Supported by

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