Skip to main content

Whisper is a secure, anonymous chat application for the command line, enabling private communication, user profile management, and more—all from your terminal.

Project description

Whisper CLI Tool

Whisper CLI is a command-line interface tool that allows users to interact with the Whisper application, performing actions like signing up, logging in, setting availability for chat, viewing profiles, and listing active users.

Table of Contents

Installation

Prerequisites

Make sure you have the following installed:

  • Python 3.6+
  • pip (Python package installer)
  • requests package for handling HTTP requests

To install the necessary dependencies, run the following command:

pip install whisper_chat

Usage

Once you have installed the dependencies, you can use the whisper command in your terminal to interact with the CLI tool.

General Command Format

The basic format for using the Whisper CLI is:

whisper <command> --username <username> --password <password> --option <option>

Each command has specific options and flags as described below.

Signup

To create a new user account:

whisper signup --username <your-username> --password <your-password>

This command registers you as a new user in the application. Ensure that both username and password are provided.

Login

To log into the application:

whisper login --username <your-username> --password <your-password>

This command logs you in using your credentials and returns an authentication token that will be used in subsequent requests.

Ready to Chat

To set your availability for chatting:

whisper ready_to_chat --username <your-username>

After running this command, you will be prompted to enter whether you're ready to chat:

  • Enter Yes, Y, or ON to mark yourself as available.
  • Enter No, N, or OFF to mark yourself as unavailable.

Profile

To view your profile information:

whisper profile --username <your-username>

This command retrieves and displays details about your profile, such as your username, email, and current availability status.

Active Users

To view a list of all active users (users who are available for chatting):

whisper active_users --username <your-username>

This command will return a list of all users who are online and ready to chat.

Commands

The CLI supports the following commands:

Command Description Required Arguments Optional Arguments
login Logs into the application --username, --password
signup Registers a new user --username, --password
ready_to_chat Sets your chat availability (ready/not ready) --username
profile Displays your profile information --username
active_users Lists all users who are available for chatting --username

Examples

  • Login

    whisper login --username Al-Areef --password Wagwan
    
  • Signup

    whisper signup --username Al-Areef --password Wagwan
    
  • Set Ready to Chat

    whisper ready_to_chat --username Al-Areef
    

    Then you will be prompted to type Yes/Y or No/N to set your availability.

  • View Profile

    whisper profile --username sAl-Areef
    
  • List Active Users

    whisper active_users --username Al-Areef
    

Contributing

We welcome contributions! If you have any features or improvements, feel free to open an issue or submit a pull request. Make sure to include tests for your new features or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more 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

whisper_chat-1.0.6.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

whisper_chat-1.0.6-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file whisper_chat-1.0.6.tar.gz.

File metadata

  • Download URL: whisper_chat-1.0.6.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for whisper_chat-1.0.6.tar.gz
Algorithm Hash digest
SHA256 0032e1d084a6542d9f30e9db62c80739e0bb03c68f19a067dd866d7bd7800f26
MD5 9d0a365cf98094caf72ff6fd4725f0e6
BLAKE2b-256 39d6ca4d12b5f9ac50e1f3956f705c55cb6c160ce92dd22d94fe342e2a9598d8

See more details on using hashes here.

File details

Details for the file whisper_chat-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: whisper_chat-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for whisper_chat-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ced42fe636ce4e9056e62565f83f8648e8d8990fd7a3a4ec01fbb2e3fc131a9d
MD5 c8693ff2d9932d8186695cd2eb4e360a
BLAKE2b-256 9ec02907862127be1f86c93ef8ca9f0f3e130fee20f597fdfcce628fff630ec7

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