Skip to content

puppetparser is a Python library to parse Puppet scripts into an object model

License

Notifications You must be signed in to change notification settings

Nfsaavedra/puppetparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppetparser

puppetparser 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:

poetry 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

GPL-3.0

About

puppetparser is a Python library to parse Puppet scripts into an object model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages