1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import click from piptools.scripts import compile, sync @click.group() def cli(): pass cli.add_command(compile.cli, "compile") cli.add_command(sync.cli, "sync") # Enable ``python -m piptools ...``. if __name__ == "__main__": # pragma: no branch cli()