Skip to main content

A cli based chat application in python

Project description

chatterflow

Python Version License Python CI Build and Deploy Sphinx Docs

A simple, terminal-based chat application with user authentication and private messaging, built with Python sockets.

Features

  • User Authentication: Secure registration and login system.
  • Password Hashing: Passwords are securely hashed using PBKDF2.
  • Public Chat: Broadcast messages to all connected users.
  • Private Messaging: Send private messages to specific users.
  • User List: View a list of all online users.
  • Multi-client Support: The server uses threading to handle multiple clients concurrently.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python 3.11 or higher

Installation

  1. Clone the repository:

    git clone https://github.com/bhatishan2003/chatterflow.git
    cd chatterflow
    
  2. Create and activate a virtual environment (recommended):

    • Windows:

      python -m venv .venv
      .venv\Scripts\activate
      
    • macOS & Linux:

      python -m venv .venv
      source .venv/bin/activate
      
  3. Install the package:

    • For regular use:

      pip install .
      
    • For development (editable mode):

      pip install -e .
      

Usage

1. Start the Server

Open a terminal and run the following command to start the chat server on the default host (127.0.0.1) and port (9009):

chatterflow --server

2. Start the Client

Open one or more new terminals and run the following command to connect a client to the server:

chatterflow --client

Commands

The client supports the following commands:

Command Description
/msg <user> <message> Send a private message.
/list List all online users.
/help Show this help message.
/quit Disconnect from the server.

Testing

To run the test suite, execute the following command:

pytest -v

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

chatterflow-0.0.2.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

chatterflow-0.0.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file chatterflow-0.0.2.tar.gz.

File metadata

  • Download URL: chatterflow-0.0.2.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for chatterflow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 da7c24444d39a9f72e5f18aa7bc0db6d8288f75c7df5df7b8d6a5b6fdc038cde
MD5 fab95a9e15cfdd8e6dc0cf0b68614939
BLAKE2b-256 328f33750192660f58a9b95b83f0817a931e976f0adbf48008e16fdf9d4950ab

See more details on using hashes here.

File details

Details for the file chatterflow-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: chatterflow-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for chatterflow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 89e0172332a1286414d79fec0dd50d7963813216f1de61455863521eafd46e3b
MD5 83f430ce08d6d42a0d0f2c8b32c4f8c5
BLAKE2b-256 fb16419396541313d76b8bd752868260f92e8ff5077a1430740b52e8ff35352a

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