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 Distribution
frigg-settings-1.0.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file frigg-settings-1.0.0.tar.gz
.
File metadata
- Download URL: frigg-settings-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcf45c07316ad6d5b1c34f8d9f9b9d53d1fc1586ca1144a602f8c5b02fcb9724 |
|
MD5 | bcd341b6f75a410ff21263d942ec9da3 |
|
BLAKE2b-256 | 2ae8dd714b0a03866659cfdcd1bf067d428e225f19eeec888b4ba8580387192f |
File details
Details for the file frigg_settings-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: frigg_settings-1.0.0-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 | ccdb3b21a5eab39ecbed3d815e940ca999a90c4c74b0ee34e38cca1e24f2764d |
|
MD5 | 0d61140c2940301e7784fcb3cb78dd5a |
|
BLAKE2b-256 | 36967bb505da0fd5523e731689f9ba4bd2f7d486549f09a05505d19758a010e8 |