frigg-settings-3.1.2
توضیحات
A module for parsing and discovery of frigg settings file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | frigg-settings-3.1.2 |
| نام | frigg-settings |
| نسخه کتابخانه | 3.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | The frigg team |
| ایمیل نویسنده | hi@frigg.io |
| آدرس صفحه اصلی | https://github.com/frigg/frigg-settings |
| آدرس اینترنتی | https://pypi.org/project/frigg-settings/ |
| مجوز | MIT |
# frigg-settings [](https://ci.frigg.io/frigg/frigg-settings/last/) [](https://ci.frigg.io/frigg/frigg-settings/last/)
A python module for parsing and discovery of frigg settings file
## Installation
```
pip install frigg-settings
```
## Usage
The same content as t.py, thus run `python t.py` to se the output.
```python
from frigg_settings.helpers import FileSystemWrapper
from frigg_settings import build_tasks, load_settings_file, build_settings
path = os.getcwd()
runner = FileSystemWrapper()
print('Tasks: {}'.format(build_tasks(path, runner)))
print('Settings-file: {}'.format(load_settings_file('{}/.frigg.yml'.format(path), runner)))
print('Build-settings: {}'.format(build_settings(path, runner)))
```
The script prints the following:
```text
Tasks: ['tox', 'flake8']
Settings-file: {'tasks': ['tox -e py34', 'tox -e flake8', 'tox -e isort', 'coverage report -m && coverage xml'], 'coverage': {'parser': 'python', 'path': 'coverage.xml'}}
Build-settings: {'webhooks': [], 'services': [], 'tasks': ['tox -e py34', 'tox -e flake8', 'tox -e isort', 'coverage report -m && coverage xml'], 'coverage': {'parser': 'python', 'path': 'coverage.xml'}}
```
--------------
MIT © frigg.io
نیازمندی
| مقدار | نام |
|---|---|
| ==3.11 | pyyaml |
| >1.0,<2.0 | frigg-test-discovery |
نحوه نصب
نصب پکیج whl frigg-settings-3.1.2:
pip install frigg-settings-3.1.2.whl
نصب پکیج tar.gz frigg-settings-3.1.2:
pip install frigg-settings-3.1.2.tar.gz