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

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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