Skip to main content

Streamlines access and management of YAML-based configurations

Project description

MFC Configuration Loader

linting: pylint

Introduction

MFC Configuration Loader streamlines YAML-based configuration management with features such as multi-file support, variables, strong typing, and more.

Features

  1. Multiple Configuration Files: Configurations can be separated into multiple files to better organize and segregate them based on environment, purpose, and any other criteria.

  2. Variables: Can define variables referencing other configurations or environment variables.

  3. Strong Typing: Configurations are loaded into the tuple hierarchy, enabling accessing node properties via dot notation.

Installation

pip install mfc-config-loader

Usage

Note
Additonal usage examples will be added soon.

# .config.yaml
gcp:
  project_id: my-project-id
  sa_key_filepath: /path/to/key.json
  default_dataset: ${project_id}.my_dataset
# main.py
configs = ConfigLoader().load("gcp")

project_id = configs.project_id
sa_key_file = configs.sa_key_filepath
default_dataset = configs.default_dataset

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

mfc-config-loader-0.0.5.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mfc_config_loader-0.0.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file mfc-config-loader-0.0.5.tar.gz.

File metadata

  • Download URL: mfc-config-loader-0.0.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for mfc-config-loader-0.0.5.tar.gz
Algorithm Hash digest
SHA256 fdbd09ed8c84b94978dfacbb33f7b200fb5ca171eb6661cb53c2777100ddcb94
MD5 6c88f08ee079ae0092476b00ebb04a00
BLAKE2b-256 537b3a50a7597d1b36f4c512e14cda57c1ce68fda41bf3487a5ffed1839f19a8

See more details on using hashes here.

File details

Details for the file mfc_config_loader-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mfc_config_loader-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e002db0281f3894e99717b998ecb669b407359a0a714e8e754e4f79b771d315b
MD5 582d6bac21999cf0aa4b572fb37e9683
BLAKE2b-256 be5865b6af88c6dfb56c6d7117eaff4f078d2374b15529510b1f9b58a5951a0c

See more details on using hashes here.

Supported by

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