- 授权协议: 未知
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/YoungPioneers/python-nginx
- 官方下载: https://github.com/YoungPioneers/python-nginx/archive/master.zip
软件介绍
python-nginx , Nginx 配置文件解析器。
用法示例:
#!/usr/bin/env python
# encoding: utf-8
from parser import Parser
from config import Config
# just 4 test
if "__main__" == __name__:
# 配置文件路径
path = r'./default'
# 结构化后的配置内容
data = Parser().loadf(path)
# print data
# 对配置内容的操作通过 config 实例
config = Config(path)
# 一些操作示例
# print config.find(('upstream', 'http')).toggle('server', '8000').gen_config()
# print config.find('http', 'server').append("addtional", "string").remove("additional", "string").gen_config()
# 保存配置内容至制定文件
# config.savef(r'./default.result')
The Haskell School of Expression
Paul Hudak / Cambridge University Press / 2000-01 / USD 95.00
Functional programming is a style of programming that emphasizes the use of functions (in contrast to object-oriented programming, which emphasizes the use of objects). It has become popular in recen......一起来看看 《The Haskell School of Expression》 这本书的介绍吧!
