Skip to main content

RootKit custom PyYaml Lib

Project description

rkt_config_lib

Centralized Configuration Management wrapper around PyYaml.

Features

  • Singleton Pattern: Ensures a single configuration state across your application.
  • Auto-Loading: Automatically scans and loads all YAML files in a config/ directory.
  • Safe Loading: Uses yaml.safe_load by default to prevent arbitrary code execution vulnerabilities.
  • Integrated Logging: Logs loading operations via rkt_logger_lib.

Usage

from config import Config

conf = Config()
# Loads all .yml/.yaml files from ./config/ directory
conf.get_data()

# Access data (filename becomes the key)
my_settings = conf.data.get("settings")

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

rkt_config_lib-2.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

rkt_config_lib-2.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file rkt_config_lib-2.0.3.tar.gz.

File metadata

  • Download URL: rkt_config_lib-2.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for rkt_config_lib-2.0.3.tar.gz
Algorithm Hash digest
SHA256 9cd728dac1030cd0fe8a46a88d6b204c2ea27d25377d8f9c498d22c09a373663
MD5 a4135dd66fa6576a05f9e61f004aa6be
BLAKE2b-256 32d7063e79e858dc9ffa1540ef3327f86b91646cb5369412b8634ee762fede58

See more details on using hashes here.

File details

Details for the file rkt_config_lib-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: rkt_config_lib-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for rkt_config_lib-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 66cfea3d575f76e6c7c550fe3ca3d27cea7c08505b6c79fb078b4c242c762509
MD5 37a962cf1b150830fdd07423bf61c288
BLAKE2b-256 9e90102dbcb9891bca154ce2cb65db9ccb0e6d6325c5aa03a4b9020c3f9ae99e

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