All Projects → pallets → Click

pallets / Click

Licence: bsd-3-clause
Python composable command line interface toolkit

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Click

website
Website for the Pallets projects
Stars: ✭ 126 (-98.93%)
Mutual labels:  click, pallets
Sphinx Click
A Sphinx plugin to automatically document click-based applications
Stars: ✭ 134 (-98.86%)
Mutual labels:  cli, click
Typer
Typer, build great CLIs. Easy to code. Based on Python type hints.
Stars: ✭ 6,793 (-42.14%)
Mutual labels:  cli, click
Python Cfonts
Sexy fonts for the console
Stars: ✭ 143 (-98.78%)
Mutual labels:  cli, click
Doitlive
Because sometimes you need to do it live
Stars: ✭ 3,073 (-73.83%)
Mutual labels:  cli, click
Sqlite Utils
Python CLI utility and library for manipulating SQLite databases
Stars: ✭ 368 (-96.87%)
Mutual labels:  cli, click
Pyintelowl
Robust Python SDK and Command Line Client for interacting with IntelOwl's API.
Stars: ✭ 26 (-99.78%)
Mutual labels:  cli, click
Create New Cli
Create your own CLI using a series of simple commands.
Stars: ✭ 122 (-98.96%)
Mutual labels:  cli
Foaas Cli
A terminal client to interact with Fuck Off 🖕 as a Service API. Made this to learn Go, it has lots of shitty code.
Stars: ✭ 124 (-98.94%)
Mutual labels:  cli
Genesis
Templating, scaffolding and generation tool
Stars: ✭ 122 (-98.96%)
Mutual labels:  cli
Dksnap
Docker Snapshots for Development and Test Data
Stars: ✭ 122 (-98.96%)
Mutual labels:  cli
Libneo4j Client
neo4j-client -- Neo4j Command Line Interface (CLI)
Stars: ✭ 121 (-98.97%)
Mutual labels:  cli
Mcscript
A programming language for Minecraft Vanilla
Stars: ✭ 124 (-98.94%)
Mutual labels:  cli
Symfony Demo App
A Symfony demo application with basic user management
Stars: ✭ 122 (-98.96%)
Mutual labels:  cli
Weave
A simple CLI router for wiring together several sources behind a single HTTP endpoint
Stars: ✭ 125 (-98.94%)
Mutual labels:  cli
Pipenv Pipes
A PipEnv Environment Switcher
Stars: ✭ 122 (-98.96%)
Mutual labels:  cli
Pretty Quick
⚡ Get Pretty Quick
Stars: ✭ 1,766 (-84.96%)
Mutual labels:  cli
Ffind
A sane replacement for find
Stars: ✭ 124 (-98.94%)
Mutual labels:  cli
Riko
A Python stream processing engine modeled after Yahoo! Pipes
Stars: ✭ 1,571 (-86.62%)
Mutual labels:  cli
Chest
Bash glue to encrypt and hide files
Stars: ✭ 123 (-98.95%)
Mutual labels:  cli

$ click_

Click is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary. It's the "Command Line Interface Creation Kit". It's highly configurable but comes with sensible defaults out of the box.

It aims to make the process of writing command line tools quick and fun while also preventing any frustration caused by the inability to implement an intended CLI API.

Click in three points:

  • Arbitrary nesting of commands
  • Automatic help page generation
  • Supports lazy loading of subcommands at runtime

Installing

Install and update using pip:

$ pip install -U click

A Simple Example

import click

@click.command()
@click.option("--count", default=1, help="Number of greetings.")
@click.option("--name", prompt="Your name", help="The person to greet.")
def hello(count, name):
    """Simple program that greets NAME for a total of COUNT times."""
    for _ in range(count):
        click.echo(f"Hello, {name}!")

if __name__ == '__main__':
    hello()
$ python hello.py --count=3
Your name: Click
Hello, Click!
Hello, Click!
Hello, Click!

Donate

The Pallets organization develops and supports Click and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].