Skip to main content

A easy-to-use command-line interface generator

Project description

A easy-to-use command-line interface generator


Have you never wanted to create cli tools with python more easily? Groom brings you easier way to create cli tools.

Here is an example:

from groom import *

def function(*,
  first_arg: positional(
    'int value',
  second_arg: switch(
    'switch value',
  third_arg: optional(
    'string value',
    short_name='t') = 'string',
  fourth_arg: multiple(
    'list of float values',
    short_name='f') = [0.1, 3.2]):
  print('first_arg:', first_arg)
  print('second_arg:', second_arg)
  print('third_arg:', third_arg)
  print('fourth_arg:', fourth_arg)

if __name__ == '__main__':
    "A test command-line program"

This supports int, str, float, complex, and bool as a parameter type. If you passed other types, it will throw TypeError.


Groom has those features:

  • default values
  • list parameters
  • automatic help generation
  • sub-command support

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for groom, version 0.0.2a1
Filename, size File type Python version Upload date Hashes
Filename, size groom-0.0.2a1-py3-none-any.whl (7.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size groom-0.0.2a1.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page