معرفی شرکت ها


config-better-1.1.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Configure your application in a friendlier and more consistent way!
ویژگی مقدار
سیستم عامل -
نام فایل config-better-1.1.0
نام config-better
نسخه کتابخانه 1.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Kade Robertson
ایمیل نویسنده kade@kaderobertson.pw
آدرس صفحه اصلی https://github.com/kade-robertson/config-better
آدرس اینترنتی https://pypi.org/project/config-better/
مجوز MIT
# config-better [![PyPI](https://img.shields.io/pypi/v/config-better.svg?style=flat-square)](https://pypi.org/project/config-better/) [![CircleCI Build Status](https://img.shields.io/circleci/token/a23936ed1748d98b98003357c1e205619209af66/project/github/kade-robertson/config-better/master.svg?style=flat-square)](https://circleci.com/gh/kade-robertson/config-better) [![Codecov](https://img.shields.io/codecov/c/github/kade-robertson/config-better.svg?style=flat-square)](https://codecov.io/gh/kade-robertson/config-better) Make use of directories for configuration / data / caching better and more user-friendly! This module provides support for the XDG Base Directory specification, and OS-friendly fallbacks for Windows, Mac OS, and Linux if not otherwise specified. ## Usage ```python import os.path import configbetter c = configbetter.Config('appname') with open(os.path.join(c.config, 'config.json')) as conf: # ... ``` Available parameters for creating a `Config` instance: - `force_unix` allows you to force using Unix-like paths on Windows/Darwin if desired. This isn't really recommended on Windows but on Darwin it seems as though programs without a GUI usually use Unix-like configuration paths while GUI apps use the "standard" Darwin paths. By default this is `False`. Available properties of `Config`: - `.cache`, which points to `$XDG_CACHE_HOME` if available, otherwise uses a generic system equivalent. - `.config`, which points to `$XDG_CONFIG_HOME` if available, otherwise uses a generic system equivalent. - `.data`, which points to `$XDG_DATA_HOME` if available, otherwise uses a generic system equivalent. Additionally, the following methods are provided: - `.makedirs()` will create the cache, config and data directories if they do not already exist, including all parent directories. - `.rmdirs()` will remove any program-specific directories that would have been created by config-better. ## Installation ```bash pip install config-better ``` ## Developing 1. Clone the repo 2. `git checkout -b some-feature-or-bugfix` 3. Do work 4. Test with `pytest` (add tests to maintain coverage as best as possible) 5. Run `yapf -ir .` and `isort -rc .` to standardize. 6. Make a PR.


زبان مورد نیاز

مقدار نام
>=3.0.* Python


نحوه نصب


نصب پکیج whl config-better-1.1.0:

    pip install config-better-1.1.0.whl


نصب پکیج tar.gz config-better-1.1.0:

    pip install config-better-1.1.0.tar.gz