Skip to main content

A little package for loading Flask configurations from YAML files.

Project description

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 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)

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.6.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file flask-cfg-0.0.6.tar.gz.

File metadata

  • Download URL: flask-cfg-0.0.6.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flask-cfg-0.0.6.tar.gz
Algorithm Hash digest
SHA256 68d98b44ebf83ab7d5805d87c069ee510f4181e35ab713041f73b30f3894abd4
MD5 43d6b8b38d4d53fb9d85c4fadd3e13c8
BLAKE2b-256 ae53075c4fbada42b4fe55880e7bbee15196a1517f8a25029d3f35c2cfbf2ed5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page