Skip to main content

Standard way that I am using to use config

Project description

r_config

Standard way that I am using to use config

usage:

from str:

from r_config import RConfig

r_config = RConfig()

str_yaml = """
    yek:
      ramin: 2
      mehran: 'salam'
    # comment to test
    dow:
      se:
        p1: 2.2
      f1: 'khodafez'
"""

r_config.update_from_str(str_yaml)

from file:

from r_config import RConfig
from pathlib import Path

r_config = RConfig()

path = Path('/path/to/config.yaml')

r_config.update_from_file(path)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

r_config-0.3.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file r_config-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: r_config-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for r_config-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19f560c3d98de03c984344ef048a01d675c5f030f9473cb3522438d4dcb72ff1
MD5 b8e50d85f1781e502fa6d459abb2d381
BLAKE2b-256 214a431f65df6f248d1c220d04879cc8e72bf279e067cbfe0b85b99ce4ff87f9

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