A little package for loading Flask configurations from YAML files.
Project description
===========
flask-cfg
===========
A little package for loading Flask configurations from YAML files. Comes
with an abstract class with base functionality for loading YAML base
configurations. You can extend the base functionality to dynamically load
additional configurations (e.g. from a database). Typical usage looks like
this::
from flask import Flask
from flask_cfg import AbstractConfig, SimpleConfig
app = Flask()
config = SimpleConfig(default_conf_paths='default.yaml',
override_conf_paths='some/path/staging.yaml',
secret_conf_paths='instance/local.yaml')
app.config.from_object(config.to_object())
Dependencies
===========
Here are some requirements:
* [YAML](https://github.com/yaml/pyyaml)
* [pytest](https://docs.pytest.org/en/latest/) for testing only
flask-cfg
===========
A little package for loading Flask configurations from YAML files. Comes
with an abstract class with base functionality for loading YAML base
configurations. You can extend the base functionality to dynamically load
additional configurations (e.g. from a database). Typical usage looks like
this::
from flask import Flask
from flask_cfg import AbstractConfig, SimpleConfig
app = Flask()
config = SimpleConfig(default_conf_paths='default.yaml',
override_conf_paths='some/path/staging.yaml',
secret_conf_paths='instance/local.yaml')
app.config.from_object(config.to_object())
Dependencies
===========
Here are some requirements:
* [YAML](https://github.com/yaml/pyyaml)
* [pytest](https://docs.pytest.org/en/latest/) for testing only
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask-cfg-0.0.3.tar.gz
(4.9 kB
view hashes)