pipx: break `commands.py` into individual files

How would this feature be useful?

commands.py has grown to be quite large, so breaking it into file names corresponding to the command name will help reduce the barrier to entry for new devs in pipx’s codebase.

Describe the solution you’d like

Make a folder called commands and in that folder add files corresponding to each pipx command, such as commands/list_command.py, commands/install_command.py, etc.

Describe alternatives you’ve considered

Break commands.py into files in the same directory. This will make it harder to distinguish between libraries, classes and commands though, so I think putting commands in a commands dir will be the option of least astonishment.

Notes

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Closed via #382 🎉