dtu-config-0.1
توضیحات
A library to add a configuration file to your project
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dtu-config-0.1 |
| نام | dtu-config |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DTU Wind Energy |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dtu-config/ |
| مجوز | BSD-3-Clause |
# DTU Configuration
This package provides a configuration class to get, process, edit and store user input.
It is a thin wrapper around ConfigParser that provides utilities for adding validated configuration options and prompting the user for them, or allowing them to be filled by a CLI.
### Usage
```python
from dtu_conf import DtuConfig
app_name = "example_app"
app_author = "author_name"
conf = DtuConfig(app_name=app_name, app_author=app_author)
# Add options.
conf.add_str(
"User metadata", "institution",
input_text="Please enter your institution"
)
conf.add_email(
"User metadata", "email",
input_text="Please enter your email (optional)",
required=False
)
conf.create_config()
```
نیازمندی
| مقدار | نام |
|---|---|
| <=2,>=1 | appdirs |
| <=2,>=1 | email-validator |
| <=9,>=8 | phonenumberslite |
| <=2,>=1 | pydantic |
| >=7 | ipython |
| >=2 | pre-commit |
| >=6 | pytest |
| >=3 | pytest-cov |
| >=52 | setuptools |
| >=6 | setuptools-scm |
| >=4 | sphinx |
| >=1 | sphinx-rtd-theme |
| >=0.3 | sphinx-argparse |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl dtu-config-0.1:
pip install dtu-config-0.1.whl
نصب پکیج tar.gz dtu-config-0.1:
pip install dtu-config-0.1.tar.gz