Metadata-Version: 2.1
Name: puppetparser
Version: 0.1.4
Summary: A parser from Puppet to an object model
Home-page: https://github.com/Nfsaavedra/puppetparser
Author: Nuno Saavedra
Author-email: nuno.saavedra@tecnico.ulisboa.pt
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/Nfsaavedra/puppetparser/issues
Project-URL: Source, https://github.com/Nfsaavedra/puppetparser
Keywords: puppet,parser,model
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.9, <4
Description-Content-Type: text/markdown
License-File: LICENSE

# 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


```python
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](https://choosealicense.com/licenses/gpl-3.0/)


