Skip to main content

A module for parsing and discovery of frigg settings file

Project description

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.

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

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

frigg_settings-1.1.0-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for frigg_settings-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 49b4346127b6fa7e069903628a47dd3a2ce45cb9c5218cd9da5fcfa4c135c529
MD5 0865a82975413c86e333e9ea4f0bb03d
BLAKE2b-256 3a9150d8066ee454abd90e8a2c04020f62a1d74c4630aab90a093dfd887b5c9c

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