A parser from Puppet to an object model
Project description
puppet-parser
puppet-parser is a Python library to parse Puppet scripts. This parser allows the transformation of a Puppet script into an object model that represents the constructs of the Puppet DSL language.
Installation
To install run:
pip install puppetparser
Or clone the Github repository and run:
python3 setup.py install
Usage
from puppetparser.parser import parse
with open(path) as f:
parsed_script, comments = parse_puppet(f.read())
Tests
To run the tests:
python3 -m unittest discover tests
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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
puppetparser-0.1.3.tar.gz
(27.3 kB
view hashes)