Skip to main content

A terminal-based encrypted chat system for LAN and remote connections

Project description

ChaTerminal

ChaTerminal is a cross-platform terminal-based encrypted chat system built with Python. It supports multiple users on a local network or via tunneling tools like Ngrok or LocalXpose, providing a lightweight and interactive chat experience — right from the terminal.

Python License Platform

Features

  • Encrypted communication using custom crypto utilities
  • Multi-user chat over LAN or tunneled internet
  • Color-coded messages with timestamp formatting
  • Auto-complete for commands via readline and TAB
  • Direct messaging using /dm <user> <message>
  • Username renaming with /rename <new_name>
  • List online users using /list
  • Admin controls: /kick <user> (admin-only)
  • Emote support: /me <action>
  • Help menu: /help displays command reference
  • User join/leave notifications
  • Sound alert for DMs and admin actions
  • Graceful client disconnect and server feedback
  • Color personalization based on username hash

Getting Started

Requirements

  • Python 3.9+
  • pip packages: colorama, pyfiglet, readline (Linux/macOS), pyreadline3 (Windows)

Installation

pip install ChaTerminal

Running the Server

ChaTerminal init server
  • Enter a port (e.g., 5555) and the admin username
  • Displays local IP with instructions for LAN or tunneled access

Running the Client

In a new terminal window:

ChaTerminal init client
  • Enter the server IP, port, and a unique username

Commands

Command Description
/dm <user> <msg> Send a private message
/kick <user> Kick a user (admin only)
/list View online users
/rename <name> Change your username
/me <action> Send an action/emote (e.g., waves)
/help Show all available commands

Networking Tips

To let others join:

  • Local network: Share the IP and port printed on server start
  • Ngrok: ngrok tcp <port>
  • LocalXpose: ./lx tcp <port>
  • Port Forwarding: Map the server's port on your router

Example

# Start server
$ ChaTerminal init server
Port: 5555
Admin Username: admin

# Start client
$ ChaTerminal init client
Server IP: 192.168.1.100
Server Port: 5555
Username: myname

Security Note

All messages are encrypted using the crypto_utils module before transmission. Ensure that this module uses secure encryption practices for production deployments.

License

This project is licensed under the MIT License. See LICENSE for more info.

Author

Gofaone Tlalang
GitHub: @Gofaone315


ChaTerminal – Real-time encrypted chat, right from your terminal.

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

chaterminal-0.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

chaterminal-0.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file chaterminal-0.0.1.tar.gz.

File metadata

  • Download URL: chaterminal-0.0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for chaterminal-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2ab9316f26cf9f84be601c83e89f9e718b7ce2b54cec3f6368d6c87e10a33e84
MD5 bc4c7613ab26226dcc4da7a83d9bab05
BLAKE2b-256 4f7f2f7cbd1aa1403e1a644115baec0469c89356a57f50b1b3bef04c8e47c6e1

See more details on using hashes here.

File details

Details for the file chaterminal-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: chaterminal-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for chaterminal-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e641917bc1978346074fba785949a8e446fba76aea5065897f8c5db4eeb9f75
MD5 1bd63acd522d80fbab9814f9bacb8af6
BLAKE2b-256 2774afdcd081eb495c9f096066e223e2fa9fefaecdf9359f829d483a0f580c82

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