A CLI tool to convert YAML file to Python module for better load performance
Project description
yamltopy
Install
pip install yamltopy
Usage
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/output.py -n NAME_OF_VARIABLE
You can import the output file (if modules set up properly):
from path.to.output import NAME_OF_VARIABLE
print(NAME_OF_VARIABLE)
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
yamltopy-1.0.0.tar.gz
(2.9 kB
view hashes)