Skip to main content

A config loader for Python projects

Project description

Python Config Loader

badge

The objective of this library is to easily load external configs for a Python project and use it for anywhere in your project.


How to use it

Install with pip

pip install adaendra-python-config-loader

Import the configs and use it!

from AdaendraConfigs import AdaendraConfigs

print(AdaendraConfigs.configs.abc)

Environment variables

Name Description Default value
CONFIG_ENVIRONMENT Environment to load None
CONFIG_FOLDER Path to the config files '/app/resources'
CONFIG_FILE_EXTENSION File extensions of your config file. Allow : '.yml'/'.yaml'/'.json' '.yaml'
CONFIG_PROJECT_NAME Name of your project (which is generally the name of the config files) 'application'

Documentation

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

adaendra_python_config_loader-0.1.8.tar.gz (15.9 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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