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. Comes with useful common helpers (getting terminal dimensions, ANSI colors, fetching direct keyboard input, screen clearing, finding config paths, launching apps and editors, etc.). Click actually implements its own parsing of arguments and does not use optparse or argparse following the optparse parsing behavior. Click is designed to be fun and customizable but not overly flexible.

Features

  • It automatically generates nicely formatted help pages
  • You can get the library directly from PyPI
  • Supports implementation of Unix/POSIX command line conventions
  • Supports loading values from environment variables out of the box
  • Support for prompting of custom values
  • Supports file handling out of the box
  • Is fully nestable and composable

Project Samples

Project Activity

See All Activity >

License

BSD License

Follow Click

Click Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Click!

Additional Project Details

Programming Language

Python

Related Categories

Python User Interface (UI) Software

Registered

2021-05-26