Skip to main content

yaml config for python

Project description

python-lib-template

config = Config('./ciao.yaml')

# writes a new field in config
config.write(f'cose.cosa', 'ciao')
print(config['cose']['cosa']) # ciao

# pushes a new obj in config
config.push(f'arrays.array_id', 1)
config.push(f'arrays.array_id', 2)
print(config['arrays']['array_id']) # [1, 2]
cose:
    cosa: ciao

arrays:
    array_id:
        - 1
        - 2

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

xconfig-0.0.5.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

xconfig-0.0.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file xconfig-0.0.5.tar.gz.

File metadata

  • Download URL: xconfig-0.0.5.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for xconfig-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0a091677d59c2261821066cdc2449bac508cf558bf35cde92985b06446416ec3
MD5 606c8aa0cd31b0c547d0202d1ac1142d
BLAKE2b-256 6a336bd1d9702b336e28befd27a13d7be50372c56c230204c3712b8375570c83

See more details on using hashes here.

File details

Details for the file xconfig-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: xconfig-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for xconfig-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1a98a81d5e5777d26e119bb53ad9bff7d2629465d911b1cd0711071232396035
MD5 e0cc613c3b9a16a503e7a4566982da64
BLAKE2b-256 1848c813df55735278756ef87ec9824578389e97638c595b1521b55da8b56c2d

See more details on using hashes here.

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