Skip to main content

Wraper to manage configurations

Project description


A Python package for managing and persisting configurations with flexibility and ease.

PyPI Version Coverage Status License GitHub Stars

Table of Contents


  • Flexible Configuration: Easily manage configurations with support for nested keys and subkeys.
  • Persistence: Persist configurations to various data sources, including in-memory, JSON, and YAML files.
  • Extensible: Easily extend the package with custom data source support.


You can install the package via pip:

pip install WrapConfig


from wrapconfig import JSONWrapConfig

# Create a JSONWrapConfig instance
config = JSONWrapConfig('config.json')

# Set a configuration value
config.set('section', 'key', value = 'value')

# the value key is not necessary,
config.set('section', 'key', 'value') # results in the same, but is less readable

config.set('section') # will fail, since there is only a key no value

# Get a configuration value
value = config.get('section', 'key')

# Persist changes


You can configure the package in various ways, including:

  • Setting default save behavior.
  • Choosing different data sources such as JSON and YAML.


For more usage examples, please refer to the examples directory. (TODO)


This project is licensed under the MIT License - see the LICENSE file for details.

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

WrapConfig-0.1.14.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

WrapConfig-0.1.14-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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