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 details)
Built Distribution
File details
Details for the file props2yaml-0.1.2.tar.gz
.
File metadata
- Download URL: props2yaml-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bcc83b40bca30512d007cffba522be162a0c89093ad2b66cb5eac776cb9406c |
|
MD5 | c9fb94a7277f413f9b2089e8b06bdf44 |
|
BLAKE2b-256 | f0be06c5a9c84e051726a028d92efe3abf168c44b41e15b4844b5f099f92fa41 |
File details
Details for the file props2yaml-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: props2yaml-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b27c3a64fd3b8b0a74513f6183d209a0a65dfa139892998f0e1a2d2b48fc24f1 |
|
MD5 | c15c43fc80c412236dbb816dc7483742 |
|
BLAKE2b-256 | 17554d9c65e77ecc37e9abdf50b2d3ab185d7f1b05a94cf8b26227b6d1fd5be4 |