- 授权协议: 未知
- 开发语言: 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 Little Schemer
[美] Daniel P. Friedman、[美] Matthias Felleisen / 卢俊祥 / 电子工业出版社 / 2017-7 / 65.00
《The Little Schemer:递归与函数式的奥妙》是一本久负盛名的经典之作,两位作者Daniel P. Friedman、Matthias Felleisen在程序语言界名声显赫。《The Little Schemer:递归与函数式的奥妙》介绍了Scheme的基本结构及其应用、Scheme的五法十诫、Continuation-Passing-Style、Partial Function、......一起来看看 《The Little Schemer》 这本书的介绍吧!
