GitHub
github.com › cdeil › python-cli-examples
GitHub - cdeil/python-cli-examples: Examples exploring Python command line interface (CLI) packages · GitHub
Examples exploring Python command line interface (CLI) packages. This is not a complete overview of ways to create CLIs in Python, just something rather specific. ... A single command line tool, lots of sub-commands.
Author: cdeil
GitHub
github.com › AnthonyBloomer › python-cli-template
GitHub - AnthonyBloomer/python-cli-template: A starting point for building Python Command Line Applications. · GitHub
This project serves as a starting point to developing command line modules with Python. It is structured in such a way that when we call the module it executes the main method in app/cli.py. This is typically where you would want to add your own logic. The setup.py file includes some advanced patterns and best practices for setup.py, as well as some commented–out nice–to–haves. For example, it provides a python setup.py upload command, which creates a universal wheel (and sdist) and uploads your package to PyPi using Twine.
Author: AnthonyBloomer
Starred by 294 users
Forked by 109 users
Languages: Python 100.0% | Python 100.0%
Starred by 64 users
Forked by 13 users
Languages: Python 99.3% | Makefile 0.7% | Python 99.3% | Makefile 0.7%
GitHub
github.com › JnyJny › cli-examples
GitHub - JnyJny/cli-examples: A selection of CLI example code in Python · GitHub
""" copy file implemented with typer """ import typer cli = typer.Typer() context_settings = dict(help_option_names=["--help", "-h"]) @cli.command(context_settings=context_settings) def copy_files( input_file: typer.FileText = typer.Option("-"), output_file: typer.FileTextWrite = typer.Option("-"), flag: bool = False, ) -> None: """Copy input file to the named output file.""" print("flag", flag) output_file.write(input_file.read()) if __name__ == "__main__": cli()
Author: JnyJny
Starred by 751 users
Forked by 32 users
Languages: Python 99.6% | Makefile 0.4% | Python 99.6% | Makefile 0.4%
GitHub
github.com › topics › python-cli
python-cli · GitHub Topics · GitHub
A Python tool that lets you search and download torrents without leaving your CLI.