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 Distributions
frigg_settings-2.0.0-py3.5.egg
(11.4 kB
view details)
File details
Details for the file frigg_settings-2.0.0-py3.5.egg
.
File metadata
- Download URL: frigg_settings-2.0.0-py3.5.egg
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4d5483fa8025fe6653f4c88e2ef70d02c45362d931fa3ef0fa474c9a6f27f49 |
|
MD5 | 0e55f7829a34af7afa164077711b349f |
|
BLAKE2b-256 | 30412cc9e205c6e99e3205f0cd544a72446a5bbaf724b76406f486a76d3300b9 |
File details
Details for the file frigg_settings-2.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: frigg_settings-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b81517cab4266fb98003db785494668f61486abedb82861f0c63b5ea7e40d964 |
|
MD5 | dd1a9602e4062af8060a5f43e3a4f645 |
|
BLAKE2b-256 | b1b43a4ff49f644ae15199550d083f6381cdadbceef112843842ab214def9749 |