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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file msc_pyparser-1.2.1.tar.gz.

File metadata

  • Download URL: msc_pyparser-1.2.1.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for msc_pyparser-1.2.1.tar.gz
Algorithm Hash digest
SHA256 db1cb8593410b912eed57fbcd26b0f37a0ea809ac6cedad34d505cad2b164e3e
MD5 077693570976953ce7c13bd3ae163cb9
BLAKE2b-256 fdda9344c79db60745d11a8431cb0f81ebe410954b4fab99cec0378efb71a12c

See more details on using hashes here.

File details

Details for the file msc_pyparser-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: msc_pyparser-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 48.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for msc_pyparser-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2f6a1213ff8c5df2cb6d1f85c003ef4b3d2b12371e4394b40f628eb181917b53
MD5 e53baf0e89eeb88f64390f4ee5281858
BLAKE2b-256 4862c030edcc6b733f12acf965b2283b3c8dce2d858fad2a52d29bbfc6b582f6

See more details on using hashes here.

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