Skip to main content

A simple package which converts a standard python dictionary to a dot accessible object.

Project description

DotConfig

Static Badge

A simple package which converts a standard python dictionary to a dot accessible configuration object.

Installation

pip install dotcon

Usage

from dotcon import DotConfig

mydict = {
    "A": [1, 2, 3, 4],
    "B": {"C": 5},
    "D": "E",
    "F": None,
}

ddict = DotConfig(mydict)

ddict.A
>>> [1, 2, 3, 4]

ddict.B
>>> {"C": 5}

ddict.B.C
>>> 5

ddict.D
>>> "E"

ddict.F
>>> None

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

dotcon-0.4.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

dotcon-0.4.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file dotcon-0.4.0.tar.gz.

File metadata

  • Download URL: dotcon-0.4.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Windows/10

File hashes

Hashes for dotcon-0.4.0.tar.gz
Algorithm Hash digest
SHA256 755c5b311412291e245f98dfd582addd184484f67cd938c9e7c5619f25a95119
MD5 74a649db9cbc9716ba39a3c8bc1744c6
BLAKE2b-256 0414e09bc13fbad97d20c9484f7090ac137af4f2495786c85e919b9f90e89a81

See more details on using hashes here.

File details

Details for the file dotcon-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: dotcon-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Windows/10

File hashes

Hashes for dotcon-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07f1b2b9a5911ad6fc03030e6e2d6c95a537ecf00b7488b11ee595ae9f071f39
MD5 7bb4b4b9915cfa142131d4731fde59ac
BLAKE2b-256 17198496103e8e1bc58ccf8b74951217147efff14874130292442c830f2a294b

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