3 ms·
I have 3 live projects using click. I like it. Caveat: Click's docs were out of date and had open bugs for what feels like years until it finally updated to 7.
by tony 7y ago
I have 3 live projects using click. I like it.
Caveat: Click's docs were out of date and had open bugs for what feels like years until it finally updated to 7. version 6 was "unstable" https://github.com/pallets/click/issues/503 https://github.com/pallets/click/issues/503. Hopefully it's over now.
Good things:
- More concise than standard library argparse
- Testing via CliRunner (http://click.palletsprojects.com/en/7.x/testing/ http://click.palletsprojects.com/en/7.x/testing/), example: https://github.com/tmux-python/tmuxp/blob/v1.5.3/tests/test_cli.py https://github.com/tmux-python/tmuxp/blob/v1.5.3/tests/test_...
Feel free to study / copy from mine if you like (license MIT):
- https://cihai-cli.git-pull.com/ https://cihai-cli.git-pull.com/: https://github.com/cihai/cihai-cli/blob/v0.5.0/cihai_cli/cli.py https://github.com/cihai/cihai-cli/blob/v0.5.0/cihai_cli/cli...
- https://tmuxp.git-pull.com/ https://tmuxp.git-pull.com/: https://github.com/tmux-python/tmuxp/blob/v1.5.3/tmuxp/cli.py https://github.com/tmux-python/tmuxp/blob/v1.5.3/tmuxp/cli.p...
- https://vcspull-git-pull.com/ https://vcspull-git-pull.com/: https://github.com/vcs-python/vcspull/blob/v1.2.0/vcspull/cli.py https://github.com/vcs-python/vcspull/blob/v1.2.0/vcspull/cl...