Difference between revisions of "Click python library"
Jump to navigation
Jump to search
↑ https://click.palletsprojects.com/en/8.1.x/options/#choice-options
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
[[import]] click | [[import]] click | ||
− | @click.command() | + | [[@]]click.command() |
@click.option("--YourOption", type=click.STRING, required=True) | @click.option("--YourOption", type=click.STRING, required=True) | ||
+ | click.choice <ref>https://click.palletsprojects.com/en/8.1.x/options/#choice-options</ref> | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[import argparse]]</code> | ||
+ | * [[Function decorators in Python]] | ||
== See also == | == See also == |
Latest revision as of 16:22, 27 September 2023
- https://click.palletsprojects.com/
- Installation:
pip3 install -U click
import click
@click.command() @click.option("--YourOption", type=click.STRING, required=True)
click.choice [1]
Related[edit]
See also[edit]
- Command-line argument parsing,
argparse
,optparse
,click
,inquirer
,docopt
,help
,usage
,minimist
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: