معرفی شرکت ها


basecmd-0.1.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Logging boilerplate for the command line
ویژگی مقدار
سیستم عامل -
نام فایل basecmd-0.1.2
نام basecmd
نسخه کتابخانه 0.1.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده dnknth
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/dnknth/basecmd
آدرس اینترنتی https://pypi.org/project/basecmd/
مجوز -
# basecmd Boilerplate for the command line. Classes inheriting from `BaseCmd` have a `self.log` attribute that is a standard Python logger. A basic logging configuration to `sys.stdout` is provided. For command line options controlling the logging verbosity and output to a log file, call the command with `-h` or `--help`. Defaults for logging options can be also provided as environment variables or in a `.emv` file: * `LOG_LEVEL`: the logging verbosity, one of `error`, `warn`, `info`, or `debug`; default: `info`. ' `LOG_FILE`: path to a log file, defaults to the standard output for easy redirection. * `LOG_FORMAT`: a standard Python logging format, defaults to `%(asctime).19s %(message)s` when logging to a file or a terminal and `%(message)s` otherwise. When logging to a terminal, the output is colored by log level. ## Example usage ```python from basecmd import BaseCmd class MyCmd(BaseCmd): def add_arguments(self): self.parser.add_argument('--foo', help='Custom command line option') def __call__(self): self.log.debug(self.options.foo) if __name__ == '__main__': cmd = MyCmd cmd() ```


نیازمندی

مقدار نام
- setuptools
==1.1.* ansicolors
==3.* python-decouple


نحوه نصب


نصب پکیج whl basecmd-0.1.2:

    pip install basecmd-0.1.2.whl


نصب پکیج tar.gz basecmd-0.1.2:

    pip install basecmd-0.1.2.tar.gz