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
Release history Release notifications | RSS feed
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
File details
Details for the file frigg_settings-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: frigg_settings-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e863ae558e2cb325048c250f6dc6b03a6d2256b2a33e4dc9c36a2f33e8fa51c |
|
MD5 | 2d9bceb0abd4bdfcb41b74fde7e19b28 |
|
BLAKE2b-256 | 337aa6dfb642f3601581740852e483e0f1f2f53d4d0de874e1f161dad88ebb77 |