Skip to main content

Utils for managing configurations

Project description

Info:Python package to manage configuration dictionaries.
Author: Servicio de Informática y Banco de Datos <>


  • Simple wrapper around python dictionaries
  • Access to nested keys with dot notation: config.deeply.nested.key or as dictionary keys: config['deeply']['nested']['key']
  • Allows add dictionaries, remove keys or modify values by overriding dictionary methods


pip install beautifuldict

Quick Example

A Baseconfig object stores the configuration parameters as a parameter tree. It gives access to parameters in two ways: as dictionary keys or as attributes of the object.

>>> from beautifuldict.baseconfig import Baseconfig

>>>      'example1': 'hello world',
>>>      'example2': {
>>>          'key1': 1,
>>>          'key2': 2}
>>>      }
>>> config = Baseconfig(CONFIG_DICT)
>>> config.example1     # returns 'hello world'
>>> config['example1']  # returns 'hello world'
>>> config.example2.key1  # returns 1
>>> config['example2']['key1']  # returns 1

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for beautifuldict, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size beautifuldict-0.1.1-py3-none-any.whl (8.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size beautifuldict-0.1.1.tar.gz (16.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page