Migrated from GitHub trtmn/cli-phonetic-alphabet
  • Shell 60.1%
  • Python 24.5%
  • Ruby 15.4%
Find a file
2025-04-30 16:14:18 -05:00
.github/workflows Fix authentication in GitHub Actions workflow 2025-04-07 10:28:41 -05:00
cli_phonetic_alphabet Initial commit 2025-04-06 22:22:08 -05:00
scripts Clarify that GitHub Actions responds to tags, not creates them 2025-04-07 10:25:21 -05:00
.gitignore Initial commit 2025-04-06 22:22:08 -05:00
cli-phonetic-alphabet.rb Bump version to 0.1.5 2025-04-07 14:56:04 -05:00
nato-phonetic.rb Update formula installation 2025-04-30 16:14:18 -05:00
pyproject.toml Bump version to 0.1.5 2025-04-07 14:56:04 -05:00
readme.md Update README with correct Homebrew installation instructions 2025-04-06 22:23:11 -05:00
RELEASE.md Clarify that GitHub Actions responds to tags, not creates them 2025-04-07 10:25:21 -05:00

CLI Phonetic Alphabet

A command-line tool for converting text to NATO phonetic alphabet. Built with Click for argument parsing and Rich for pretty output.

Installation

With Homebrew (macOS)

brew tap trtmn/cli-phonetic-alphabet
brew install cli-phonetic-alphabet

From Source

  1. Clone this repository
  2. Install build dependencies:
    pip install hatch
    
  3. Build the package:
    hatch build
    
  4. Install the built package:
    pip install dist/cli_phonetic_alphabet-0.1.0-py3-none-any.whl
    

Usage

The tool can be used in two ways:

  1. Convert text to NATO phonetic alphabet:

    phonetic "Hello World"
    
  2. Show the complete NATO phonetic alphabet:

    phonetic --list
    

If no text is provided, the tool will prompt you to enter text interactively.

Features

  • Beautiful terminal output using Rich
  • Interactive mode
  • Complete alphabet listing
  • Handles spaces and special characters
  • Case-insensitive input
  • Support for numbers

Requirements

  • Python 3.8 or higher
  • Click
  • Rich