# 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
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
Metadata
Release files for frigg-settings 3.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| frigg-settings-3.1.2.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| frigg_settings-3.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 11.5 kB
Release files / frigg-settings-3.1.2.tar.gz
| Download URL | frigg-settings-3.1.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0c13593fcf4a5cc7d9ed3b37fc4cfd96a7a9f5761bf64e05616a81b7d888805
|
|
BLAKE2b-256 checksum How to use checksums |
ce89717f31d40fdeafadc8afe444505f21ff83190663aa16aa9b5ea5d7989e46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / frigg_settings-3.1.2-py2.py3-none-any.whl
| Download URL | frigg_settings-3.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6e4615282720d2644a662fb04fef2871fb843fbc8edeae47c971c088a5929702
|
|
BLAKE2b-256 checksum How to use checksums |
ee01b9f7c8a063e2f5eb3ae6990c42bd5a9deb805f9e907e1560d3617c6d7159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |