Skip to main content

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


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)

Uploaded Source

Built Distribution

props2yaml-0.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page