Skip to main content

TIGER AI secure encrypted socket client powered by pythonaibrain

Project description

Pythonaibrain-Client

TIGER AI secure encrypted socket client powered by pythonaibrain

A Python-based terminal chat client that uses XOR encryption for secure communication.


Features

  • Secure messaging with XOR cipher encryption
  • Loads sensitive config (encryption key, host, port) from .env
  • Multi-threaded send/receive for real-time chat
  • Cross-platform terminal clear support (cls / clear)
  • Easy to install and run as a CLI command client-server

Project Structure


pythonaibrain-client/
├── pyaibrain/
│   └── client/
│       ├── **init**.py      # Main client code
│       └── .env             # Configuration file for keys & settings
├── pyproject.toml           # Project metadata & dependencies
├── README.md                # This file
└── LICENSE                  # License file


Getting Started

Prerequisites

  • Python 3.8 or higher
  • pip installed

Installation

pip install pythonaibrain-client

Connecting to the Server

To use this client, you need to connect to a running server.

  • Please install the pythonaibrain version 1.1.9 package which contains the AI server implementation.
  • Start the server using the commands or instructions provided with pythonaibrain.
  • Once the server is running, run this client (client-server) to connect and chat securely.
  • Also you can run (pyaibrain-server) for normal chatting(Not a AI one).

Usage

Run the client from terminal:

client-server

You will be prompted to enter your name, then the client will connect to the server and start the chat interface.

Also,

from pyaibrain.client import ClientServer

cServer = ClientServer()
cServer.serve()

Commands

  • clear or cls to clear the terminal screen during chat

Also, run the pyaibrain-server from terminal:

pyaibrain-server

Encryption Details

Messages are encrypted/decrypted with a simple XOR cipher using the key from .env. Note: XOR is for demonstration and not secure for production use.


Author

Divyanshu Sinha Email: divyanshu.sinha136@gmail.com


License

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

✨ Preview

Chat Preview

Chat Preview

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

pythonaibrain_client-1.0.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

pythonaibrain_client-1.0.3-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file pythonaibrain_client-1.0.3.tar.gz.

File metadata

  • Download URL: pythonaibrain_client-1.0.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pythonaibrain_client-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ba2a6170db888114b1e28e126790de85b57538713161dd84fb611a0f99d86dc2
MD5 3452c94db6937c70707385df6acfc18a
BLAKE2b-256 7783d28f770870970100206f22413617f5f7ecd356ba146819374862efdec122

See more details on using hashes here.

File details

Details for the file pythonaibrain_client-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pythonaibrain_client-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a39378d762ca867fa8e2747de70f3b5bdcad0162a38fa0850d490976bb373dad
MD5 28979a2037e6fdfc54b9481e797fcd36
BLAKE2b-256 342f3bbcbf15a9b76ad3202ac5bad26f148dfa69709930a4d7017558b2cfaa3e

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