帮助汉森向杜泽尔过渡的工具
doozerif的Python项目详细描述
你是Henson用户吗?你想利用未发行的 特征?你发现Doozer了吗?你很想试试,但是 担心缺少扩展或更新 进口?
如果您对这些问题的回答是“是”,那么doozerify就是您的答案。 doozerify是一个可以安装的模块,它将使import看起来 对于你所有的汉森进口货来说,都是相当于杜泽尔的,回到 如果找不到等价物,则为Henson版本。
安装
$ pip3 install doozerify
用法
将以下代码放在入口点的开头 应用程序:
import doozerify doozerify.install()
示例
import doozerify doozerify.install() from henson import Application class Consumer(object): async def read(self): return {} async def callback(app, message): return message app = Application('doozerified', callback=callback, consumer=consumer) app.run()