Python Director

码农软件 · 软件分类 · 其他开发相关 · 2019-11-02 05:58:18

软件介绍

Director 是一个Python的类库用来开发命令行工具的插件,利用它可以很方便的添加新的功能。

下面是一个简单的例子:

#!/usr/bin/env python

import exceptions
import sys

from director import ActionRunner
from director.filter import ExceptionFilter
from director.filter import Filter

if __name__ == '__main__':
# Create and use exception filters
# Note you don't have to use filters. If you don't pass filter in
# to ActionRunner.run filters won't be used.
filter = Filter()
filter.register_filter(ExceptionFilter(exceptions.IOError, "TEST %s"))
filter.register_filter(ExceptionFilter(exceptions.TypeError, "NO! %s"))

# 'actions.package' is the package that holds the allowed plugin actions
ar = ActionRunner(sys.argv, 'actions.package')
ar.run(filter)

本文地址:https://www.codercto.com/soft/d/18076.html

电商运营之道:策略、方法与实践

电商运营之道:策略、方法与实践

吴伟定、姚金刚、周振兴、郑琰 / 机械工业出版社 / 2015-9-1 / 49

电商运营之道:策略、方法与实践是一本电商的运营指南,适合所有的电商从业人员阅读,也适合打算进入或打算在电商行业创业的读者朋友阅读。分别从策略、方法与实践三个方面全景式展示电商运营的内在商业规律与管理逻辑。一起来看看 《电商运营之道:策略、方法与实践》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具