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 Distribution
r_config-0.3.1.tar.gz
(1.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file r_config-0.3.1.tar.gz.
File metadata
- Download URL: r_config-0.3.1.tar.gz
- Upload date:
- Size: 1.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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4e4a967bb33be811cac071c8fd38280407f6bda26150d4f55aefb5bb55f3687
|
|
| MD5 |
f0dff8b3fedea9d56364695db4b4fb29
|
|
| BLAKE2b-256 |
e370472bf48ed3738e9553492719fe3fc66c75ea548e83b52d077780309429fc
|
File details
Details for the file r_config-0.3.1-py3-none-any.whl.
File metadata
- Download URL: r_config-0.3.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f34ac3ac82190f244ee2227acead5c222bbae83ec4bf083046ead3dc0a6d8807
|
|
| MD5 |
7919051affd7071a60a805a37d3f08a5
|
|
| BLAKE2b-256 |
395343fd44d77530cfb3a8f55f3ce65ad95c9e07ba1e4d9bc232b7d3df7e92b4
|