Skip to main content

A userful package to use 'the click package to add command' for a interactive terminal

Project description

cod

easy to use the click package to add command for a interactive terminal!

  1. support autocompetation
  2. support arrow up or down for history command

Installing

Install and update using pip:

pip install -U cod

A Simple Example

.. code-block:: python

import click

from cod import main, echo

@click.option('--name', prompt='Your name',
            help='The person to greet.')
@click.command()
def hello(name):
    echo(name)

main()

Project details


Download files

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

Source Distribution

cod-0.0.1.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

cod-0.0.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page