Skip to main content

A small TLS-encrypted terminal chat app (server + curses client).

Project description

ric-chat-app

A small, TLS-encrypted terminal chat app — a threaded socket server and a curses client, plus a demo time bot. All traffic is encrypted and pinned to a self-signed certificate (encryption + MITM protection).

For chatters (install & run)

pip install ric-chat-app
chat-client

That's it — chat-client connects to the hosted server out of the box, over TLS. Pick a name when prompted and start chatting. Type !exit to leave.

Want the current time in chat? If the time bot is running, send !time.

Running your own server

pip install ric-chat-app
# generate the server's key pair (see DEPLOYMENT.md for the exact command)
chat-server

Point clients at your server with an environment variable or a .env file in the directory you run from:

CHAT_MODE=aws AWS_HOST=<your.server.ip> chat-client
# or CHAT_MODE=local for a server on 127.0.0.1

Commands

Command What it does
chat-client Launches the curses chat UI
chat-server Runs the chat server (usually via systemd)
chat-timebot Runs the !time bot

Developing

git clone https://github.com/rickycarrillo3/ric_chat_app
cd ric_chat_app
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest

See DEPLOYMENT.md for the full picture: how TLS pinning works, the package layout, the CI/CD pipeline, and how to deploy/update the VPS.

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

ric_chat_app-0.1.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

ric_chat_app-0.1.2-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file ric_chat_app-0.1.2.tar.gz.

File metadata

  • Download URL: ric_chat_app-0.1.2.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ric_chat_app-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f98f2840fc8c15ded8e1b88f133db3df606bc452ad82318594836d659a739c12
MD5 94d1670f54293f74ba9c1a2f37b9a660
BLAKE2b-256 b9e4029825eb0ba4832abba12a95934b02083e50e05de2469a17bb91665a1439

See more details on using hashes here.

File details

Details for the file ric_chat_app-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ric_chat_app-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ric_chat_app-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af008c06901c5e9f00d5efc3c96ad59392572151b0286bf66e7e650aafc51468
MD5 ae194bdbe90c4493d5b5e49d568c705b
BLAKE2b-256 18c7134baa3c62537abb8b5fba131b0d510e196eeea11fdd3e540428ddef80da

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