a customized way to use config
Project description
r_config
a customized way to use config
usage:
from str:
from r_config import RConfig
rc = RConfig()
str_yaml = """
yek:
ramin: 2
mehran: 'salam'
# comment to test
dow:
se:
p1: 2.2
f1: 'khodafez'
"""
rc.update_from_str(str_yaml)
from file:
from r_config import RConfig
from pathlib import Path
rc = RConfig()
path = Path('/path/to/config.yaml')
rc.update_from_file(path)
from dict:
from r_config import RConfig
r_dict = {'a': 10, 'b': 'salam', 'f': {'p': 2, 'q': 3}}
rc = RConfig(r_dict)
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.4.1.tar.gz
(2.0 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.4.1.tar.gz.
File metadata
- Download URL: r_config-0.4.1.tar.gz
- Upload date:
- Size: 2.0 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 |
694316ee167bb7bee794a18f892e8ce715903db6e06e77d22d56b98e12ae0172
|
|
| MD5 |
593fc2e03e02df704ff9d45556a1986d
|
|
| BLAKE2b-256 |
4e834ecbf2674fbd98113b4c50e7afac769b8d0cc9ec801345c7b3854dacff9d
|
File details
Details for the file r_config-0.4.1-py3-none-any.whl.
File metadata
- Download URL: r_config-0.4.1-py3-none-any.whl
- Upload date:
- Size: 2.4 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 |
73ccc07eb7b0620b08cddeaef8e460fab0247b6b2aabd05ca358ed72507e48c2
|
|
| MD5 |
5c18ff86d9e912ae992191f4845d2095
|
|
| BLAKE2b-256 |
e514d417d08d17a4f16a0e30a27ef2e77905558a56db9c5014f6d3b0586123bb
|