Any python libs for parsing apache config files?

前端 未结 6 2099
离开以前
离开以前 2020-12-29 11:40

Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)? As i\'ll be able to rewrite them in pyt

6条回答
  •  无人及你
    2020-12-29 11:52

    ZConfig, I think, used to ship with a schema for parsing Apache configuration files; it doesn't seem to anymore, but it's oriented around parsing those types of files and turning the config into a Python object. A quick glance at the documentation suggests it wouldn't be too hard to set up a ZConfig schema corresponding to whatever Apache options you'd like to parse and validate.

    http://pypi.python.org/pypi/ZConfig/2.6.0

提交回复
热议问题