PCSK is a CLI starter kit written in Python. It is designed to help you kickstart your Python CLI project using click and following AWS CLI structure.
Using PCKS requires Python 3.6 or above. After you clone the project, you need to configure the following.
- Use your favourite editor to edit
setup.py, change the info accordingly. - Rename project name
pckstoyour_project_nameand CLI namepcksclitoyour_cli_name - Install the packages by running
python setup.py install - Run the CLI using
your_cli_name. There are built-in two commandsyour_cli_name command1andyour_cli_name command2
Usage: pcskcli [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
command1 This is a short help for command1
command2 This is a short help for command2
- Go to
<your_project_name>/commandsand copy the existing examplecommand1orcommand2 - In the new command folder, modify
__init__.pyandcommand.py - Write your CLI logic in
command.py
- Update
HELP_TEXT - Update
SHORT_HELP - Update the command name in
@click.commandand options - Add your CLI logic in
do_cli
- Go to
<your_project_name>/cli/command.py, add the package you just created to_COMMAND_PACKAGE - Test your commands
PCKS is licensed under the MIT license. Check the LICENSE file for details.