Skip to main content
Info:

Python package to manage configuration dictionaries.

Author:

Servicio de Informática y Banco de Datos <sibd@cantabria.es>

Features

  • 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

Installation

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

>>> CONFIG_DICT = {
>>>      '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

Metadata

Release files for beautifuldict 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beautifuldict 0.1.3
File Size Uploaded Provenance Actions
beautifuldict-0.1.3.tar.gz 18.7 kB Without provenance Details for beautifuldict-0.1.3.tar.gz

Release files / beautifuldict-0.1.3.tar.gz

Download URL beautifuldict-0.1.3.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3d641dc7f65baccaea59e6c30f38390fb3b0cbbe8ff83ae3b1afe5344a7d2b28
BLAKE2b-256 checksum
How to use checksums
66a27dd0823d2e237341c9255cbd4ee7a8cdd1245789c93bc5f923233453ad6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.2

Security for beautifuldict 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page