Wed, 18 Nov 2026 05:32:50 UTC Log in
Extra features for standard library's cmd module 871.78 KB built 2026-10-17 08:07:08 GMT

Description

Enhancements for standard library's cmd module. Drop-in replacement adds several features for command-prompt tools: * Searchable command history (commands: "hi", "li", "run") * Load commands from file, save to file, edit commands in file * Multi-line commands * Case-insensitive commands * Special-character shortcut commands (beyond cmd's "@" and "!") * Settable environment parameters * Parsing commands with flags * > (filename), >> (filename) redirect output to file * < (filename) gets input from file * bare >, >>, < redirect to/from paste buffer * accepts abbreviated commands when unambiguous * `py` enters interactive Python console * test apps against sample session transcript (see example/example.py) Usable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. See docs at http://packages.python.org/cmd2/

Dependencies

21 total
Requires20
  • (python3dist(tomli) if python3-devel < 3.11)
  • nano
  • pyproject-rpm-macros
  • python3-devel
  • python3-devel
  • python3-pytest
  • python3-pytest-mock
  • python3dist(build) >= 1.3
  • python3dist(packaging)
  • python3dist(pip) >= 19
  • python3dist(prompt-toolkit) >= 3.0.52
  • python3dist(pyperclip) >= 1.8.2
  • python3dist(rich) >= 15
  • python3dist(rich-argparse) >= 1.7.2
  • python3dist(setuptools) >= 80.8
  • python3dist(setuptools-scm) >= 9.2.1
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(DynamicBuildRequires) <= 4.15.0-1
  • rpmlib(FileDigests) <= 4.6.0-1
  • rpmlib(RichDependencies) <= 4.12.0-1
Provides1
  • python3-cmd2 = 4.2.0-1.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

2
Files 1–2 of 2

Component of

buildroots that installed this RPM

No Buildroots