Skip to main content

A ModSecurity config parser for Python 3

Project description

msc_pyparser is a parser, which uses PLY (Python Lex and Yacc). It tokenizes the given text, and applies the language rules. If it’s done, then builds an own structure: a list of dictionary items.

The items contains the configuration directives from the original files, and the number of lines where it founded. Also the items contains other datas about the configuration line and structure.

Therefore, you can make many transformations on the structured data, and can write back the modified config.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msc_pyparser-1.2.1.tar.gz (22.9 kB view hashes)

Uploaded Source

Built Distribution

msc_pyparser-1.2.1-py2.py3-none-any.whl (48.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page