Skip to main content

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

Metadata

Release files for puppetparser 0.2.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for puppetparser 0.2.14
File Size Uploaded Provenance Actions
puppetparser-0.2.14.tar.gz 23.6 kB Without provenance Details for puppetparser-0.2.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for puppetparser 0.2.14
File Interpreter ABI Platform Actions
puppetparser-0.2.14-py3-none-any.whl Python 3 none any Details for puppetparser-0.2.14-py3-none-any.whl

Total release size: 47.7 kB

Release files / puppetparser-0.2.14.tar.gz

Download URL puppetparser-0.2.14.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
762f11d72b0b5face39a5e9b961f52e892c0e05a85a0b2cf2c5a437b91c759dc
BLAKE2b-256 checksum
How to use checksums
db59a96f64d6af76bbd5e37048fa4b34b35cd79ec87940a50b01cea01398bf9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.9.3-76060903-generic

Release files / puppetparser-0.2.14-py3-none-any.whl

Download URL puppetparser-0.2.14-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7c09042337bbb7e94e37d19cfd88e9a5062a823bc05629141f33267a0f75734
BLAKE2b-256 checksum
How to use checksums
6f9cf0704dc7b5144d7c95ff804c840b361025f0e39328485ff2e4a91f7afeed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.9.3-76060903-generic

Security for puppetparser 0.2.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page