A simple Python 3 CLI for searching the Jisho.org Japanese language dictionary directly from the terminal.
jisho-cli
[-h] [-m N] [-d] [-D] [--timeout N] [--version]
<one or more search keywords>
- <one or more search keyword(s)>
-h, --help
―show this help message and exit
-m N, --max-results N
―Limit the maximum amount of results shown.
-d, --decompound
―Decompound the lexeme, using the first lookup result from the API as base.
-D, --decompound_literal
―Same as --decompound, but use the "search keywords" argument as-is, character by character.
--timeout
―Override for remote API connection timeout, in seconds. If value equals zero, disables API timeout entirely.
--version
―Show version number and exit.
One-liner install with pipx:
pipx install git+https://github.com/vakanen/python-jisho-cli.git
Upgrade with pipx:
pipx upgrade jisho-cli
Creating a config file (optional):
# Linux example
# Get the git files
git clone https://github.com/vakanen/python-jisho-cli
pushd "./python-jisho-cli/"
# Copy the config file
mkdir -p ~/.config/jisho_cli && cp ./config.yml "$_"
# Remove the git files
popd
rm -rf "./python-jisho-cli/"
~/.config/jisho_cli/config.yml
%LOCALAPPDATA%\jisho_cli\jisho_cli\config.yml