Migrated from GitHub trtmn/cli-phonetic-alphabet
- Shell 60.1%
- Python 24.5%
- Ruby 15.4%
| .github/workflows | ||
| cli_phonetic_alphabet | ||
| scripts | ||
| .gitignore | ||
| cli-phonetic-alphabet.rb | ||
| nato-phonetic.rb | ||
| pyproject.toml | ||
| readme.md | ||
| RELEASE.md | ||
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
- Clone this repository
- Install build dependencies:
pip install hatch - Build the package:
hatch build - 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:
-
Convert text to NATO phonetic alphabet:
phonetic "Hello World" -
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