Skip to main content

A module for parsing and discovery of frigg settings file

Project description

# frigg-settings [![Build status](]( [![Coverage status](](
A python module for parsing and discovery of frigg settings file

## Installation
pip install frigg-settings

## Usage
The same content as, thus run `python` to se the output.

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:

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'}}



Project details

Download files

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

Files for frigg-settings, version 3.1.2
Filename, size File type Python version Upload date Hashes
Filename, size frigg_settings-3.1.2-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size frigg-settings-3.1.2.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page