Skip to main content

Example CLI Script to Create Trello Cards

Project description

Trello-CLI-Example

This is a sample CLI interface to generate cards on my private Trello board.

Installation

You can install this example using the tarfile:

pip install Trello-CLI-Example-hanabou-1.0.1.tar.gz

You can also install it through pypi:

pip install Trello-CLI-Example-hanabou==1.0.1

Usage

The CLI can be used with the following options:

TRELLO CLI

Usage:
    trello_cli.py add_card <NAME> --list=<LIST> [(--label_name=<LABEL_NAME> --label_color=<LABEL_COLOR>)...] [--comment=<COMMENT_TEXT>]
    trello_cli.py -h|--help
    trello_cli.py -v|--version

Arguments:
    NAME                              Name of the new Trello card
    --list=LIST                       Name of the list that will contain the new Trello card (todo, doing, done)
    --label_name=<LABEL_NAME>         Label name for the new Trello card
    --label_color=<LABEL_COLOR>       Label color for the new Trello card (yellow, purple, blue, red, green, orange, black, sky, pink, lime)
    --comment=<COMMENT_TEXT>          Text contents for a comment on the new Trello card

Options:
    -h --help  Show this screen
    -v --version  Show version

Sample usage

Here is an example that will add a card (with labels and a comment) to my private Trello board, under the "To Do" list:

python trello_cli.py add_card "Slice of Chocolate Cake" --list=todo --label_name=DESSERT --label_color=pink --label_name="FOOD" --label_color=red --comment="With a side of ice cream"

This creates a card with the following structure:

| Trello Board "Orders"
----| Trello List "To Do"
     ----| Trello Card "Slice of Chocolate Cake"
          ----| Label "DESSERT"
               ----| Color Pink
          ----| Label "FOOD"
               ----| Color Red
          ----| Comment "With a side of ice cream"

Project details


Download files

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

Files for Trello-CLI-Example-hanabou, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size Trello_CLI_Example_hanabou-1.0.2-py3.9.egg (6.7 kB) File type Egg Python version 3.9 Upload date Hashes View
Filename, size Trello_CLI_Example_hanabou-1.0.2-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Trello-CLI-Example-hanabou-1.0.2.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

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