Convert .properties files into .yaml
Project description
props2yaml
Convert .properties
files into .yaml
install
pip install -U props2yaml
props2yaml --version
cli usage
-
props2yaml config.properties -o config.yml # (1)
-
props2yaml config.properties > config.yml # (2)
-
cat config.properties | props2yaml -o config.yml # (3)
-
cat config.properties | props2yaml > config.yml # (4)
python usage
from props2yaml import convert_properties_to_yaml
converted = convert_properties_to_yaml("config.prop.value=50")
print(converted)
output:
config:
prop:
value: '50'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
props2yaml-0.1.2.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for props2yaml-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b27c3a64fd3b8b0a74513f6183d209a0a65dfa139892998f0e1a2d2b48fc24f1 |
|
MD5 | c15c43fc80c412236dbb816dc7483742 |
|
BLAKE2b-256 | 17554d9c65e77ecc37e9abdf50b2d3ab185d7f1b05a94cf8b26227b6d1fd5be4 |