معرفی شرکت ها


cfgdir-1.0.8


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

output envdir as JSON or YAML
ویژگی مقدار
سیستم عامل -
نام فایل cfgdir-1.0.8
نام cfgdir
نسخه کتابخانه 1.0.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Matt Krueger
ایمیل نویسنده mkrueger@rstms.net
آدرس صفحه اصلی https://github.com/rstms/cfgdir
آدرس اینترنتی https://pypi.org/project/cfgdir/
مجوز MIT
# cfgdir Read envdir style configuration directory and output as JSON or YAML https://github.com/rstms/cfgdir Inspired by [djb's](https://cr.yp.to/djb.html) excellent [envdir](https://cr.yp.to/daemontools/envdir.html), a component of [daemontools](https://cr.yp.to/daemontools.html) Leverage the powerful simplicity of the filesystem as your configuration database, and the freedom to fluidly manipulate configuration data from your shell. Unlike envdir's mechanism of running another program with the configuration in environment variables, this program outputs a stream in JSON or YAML format. This output can be captured in a file or piped into stdin of another program. ## Interface ~~~ cfgdir [OPTIONS] d [INPUT] [OUTPUT] ~~~ optionally reads a JSON or YAML object from INPUT (use - to read stdin) , then reads the directory named d, outputting a JSON or YAML object modified according to files in d. The format of d is as follows: (adapted from envdir's documentation) > If d contains a file named s whose first line is t, cfgdir's output will contain an element named s with string value t. The name s must not contain =. Spaces and tabs at the end of t are removed. Nulls in t are changed to newlines. > If the file s is completely empty (0 bytes long) cfgdir will remove the element named s if it exists. ### Arguments: Argument | | default | Description --- | --- | --- | --- DIRECTORY | optional | /dev/null | Directory containing configuration data files INPUT | optional | /dev/null | Input filename or - for stdin OUPUT | optional | stdout | Output Filename or - for stdout ### Options: ``` -c, --compact minimize output -s, --sort sort output -j, --json JSON format -y, --yaml YAML format -r, --recurse process subdirectories -o, --overlay overlay JSON/YAML formatted string onto output --help Show this message and exit. ```


نیازمندی

مقدار نام
- click
- pyyaml


نحوه نصب


نصب پکیج whl cfgdir-1.0.8:

    pip install cfgdir-1.0.8.whl


نصب پکیج tar.gz cfgdir-1.0.8:

    pip install cfgdir-1.0.8.tar.gz