Skip to main content

Config wrapper for object-style usage

Project description

qrconfig

Can access dictionary items both as dictionary (like config['field']) and as an attribute (config.field), recursively: config.field.subfield.subsubfield... Also supports item assignment to update the configuration in runtime.

Usage example:

from qrconfig import QRYamlConfig

config = QRYamlConfig('config.yaml')
a = config.a
b = config['b']
config.a = 4

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

qrconfig-1.0.5.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file qrconfig-1.0.5.tar.gz.

File metadata

  • Download URL: qrconfig-1.0.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for qrconfig-1.0.5.tar.gz
Algorithm Hash digest
SHA256 31604176530b74c6d3e96ed8c4898075ffdb7698e91cff73edff887c6e0ec767
MD5 39cf71a47e10d8269170334987aa38f2
BLAKE2b-256 21b79ca5cf94eeb78f94f1d1c7e109beb687eb3b85569ed8ecc42e7565722d4b

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