Skip to main content

A module for parsing and discovery of frigg settings file

Project description

# frigg-settings [![Build status](https://ci.frigg.io/badges/frigg/frigg-settings/)](https://ci.frigg.io/frigg/frigg-settings/last/) [![Coverage status](https://ci.frigg.io/badges/coverage/frigg/frigg-settings/)](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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frigg-settings-3.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

frigg_settings-3.1.2-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file frigg-settings-3.1.2.tar.gz.

File metadata

File hashes

Hashes for frigg-settings-3.1.2.tar.gz
Algorithm Hash digest
SHA256 a0c13593fcf4a5cc7d9ed3b37fc4cfd96a7a9f5761bf64e05616a81b7d888805
MD5 c2e40517f14c616e4aa27924bef1e393
BLAKE2b-256 ce89717f31d40fdeafadc8afe444505f21ff83190663aa16aa9b5ea5d7989e46

See more details on using hashes here.

File details

Details for the file frigg_settings-3.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for frigg_settings-3.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6e4615282720d2644a662fb04fef2871fb843fbc8edeae47c971c088a5929702
MD5 1724f24c97037c9d36521a85c3625a85
BLAKE2b-256 ee01b9f7c8a063e2f5eb3ae6990c42bd5a9deb805f9e907e1560d3617c6d7159

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page