A customized way to use config
Project description
A customized way to use config
Usage
From string
from r_config import RConfig
rc = RConfig()
str_yaml = """
example1:
id: 2
name: 'Ramin'
# comment to test
example2:
sub1:
p1: 2.2
sub2: 'test_1'
"""
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.2.tar.gz
(2.5 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.2.tar.gz.
File metadata
- Download URL: r_config-0.4.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83f3112144f563bc49c3c4a5d9cb31a7aae1ede12e4062d1bfbc4d1c7ad64561
|
|
| MD5 |
68261e96e1a533de6340d1418c52bc20
|
|
| BLAKE2b-256 |
b40e0d614a2a4d819727433411577eca30369513b42a2ac1a494114722250cca
|
File details
Details for the file r_config-0.4.2-py3-none-any.whl.
File metadata
- Download URL: r_config-0.4.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9030c3d589d334614dcaabd818fbbebfe7cd0e5a00c51dc7cf64143d49dd294b
|
|
| MD5 |
b1226ba110c7d3db2dbad33b8daab3d7
|
|
| BLAKE2b-256 |
55db05bdbcfeda23a64dce09bab5688134d03450bee61cc6261b021547468f20
|