Skip to main content

Translate or explain command-line help text using DeepSeek AI

Project description

cmdhlp

Translate or explain command-line help text using DeepSeek AI.

Package name: cmdhlp | Command: hlp

Install

pip install cmdhlp
# or
pipx install cmdhlp

Quick Start

# 1. Set your DeepSeek API key
hlp config set api_key sk-your-key-here

# 2. Register shell shortcuts (optional)
hlp init
source ~/.zshrc  # or restart your terminal

# 3. Use it
nvm --help | hlp trans    # Translate help text to Chinese
nvm --help | hlp expl     # Explain the command in Chinese

# With shortcuts (after hlp init):
nvm --help | TT           # Same as hlp trans
nvm --help | EE           # Same as hlp expl

Commands

Command Description
hlp trans Translate piped help text to Chinese
hlp expl Explain piped help text in Chinese
hlp config set <key> <value> Set config (api_key, model, base_url)
hlp config show Show current config
hlp config reset Reset config to defaults
hlp init Register shell shortcuts (TT, EE)
hlp uninit Remove shell shortcuts

Configuration

Config file: ~/.config/hlp/config.json

Key Default Description
api_key (empty) DeepSeek API key
model deepseek-chat Model name
base_url https://api.deepseek.com API base URL

Environment variable DEEPSEEK_API_KEY overrides config file.

License

AGPL-3.0

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

cmdhlp-0.1.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

cmdhlp-0.1.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file cmdhlp-0.1.0.tar.gz.

File metadata

  • Download URL: cmdhlp-0.1.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cmdhlp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8104ad69a53d9c28e5cf34e848822d086c9b08339c2cd4ce2a0c5c82d32ee79
MD5 e859282ca68531ff3802f4efa2d8e91b
BLAKE2b-256 3a8c4338d867203cf3b9ab866d72f4aa70967c8ef1191ea10500f976020d86e9

See more details on using hashes here.

File details

Details for the file cmdhlp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cmdhlp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cmdhlp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d928579603d1575c532b8190af7c54f8c54142c988ec751d38791b6c192c5076
MD5 6e15bfcc46609251044fe1b3f2ff3701
BLAKE2b-256 bbbb8d422a55d0ecfa4c3a26e68d3b73d9347bdc4ef91067bc0f49791dd98412

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