Skip to main content

A CLI tool to convert YAML file to Python module for better load performance

Project description


PyPI PyPI - Downloads GitHub release (latest by date)


pip install yamltopy


usage: yamltopy [-h] [-i INPUT] [-o OUTPUT] [-n NAME] [-v]

Convert YAML configuration file to a Python modulefor better performance

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        The input Yaml file (YML or YAML)
  -o OUTPUT, --output OUTPUT
                        The output Py file
  -n NAME, --name NAME  The name of the exported variable containg the Yaml data
  -v, --verbose

Convert YAML file to PY:

yamltopy -i path/to/file.yaml -o path/to/ -n NAME_OF_VARIABLE

You can import the output file (if modules set up properly):

from import NAME_OF_VARIABLE


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

yamltopy-1.0.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

yamltopy-1.0.0-py3-none-any.whl (4.0 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