只是另一个python di库。
pyhooker的Python项目详细描述
#pyhooker
轻量级且易于使用的python依赖注入库
[![构建状态](https://travis-ci.org/sighalt/pyhooker.svg?(https://travis ci.org/sighalt/pyhooker/pyhooker/pyhooker)
`` ` `
pip install git+https://github.com/sighalt/pyhooker.git
` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
iWheel类(对象):
通过
michelinwheel类(iWheel):
通过
>通过
@pyhooker。注射参数(发动机=发动机,车轮类型:
>=iWheel)
定义初始(自我、发动机、车轮类型):
自发动机=发动机
自车轮=自车轮=自车轮类型
>Pyhooker.注册(IEngine,ottoengine)
pyhooker.register(iWheel,michelinwheel)
驾驶员.汽车,
驾驶员.汽车.发动机,
驾驶员.汽车.车轮类型))
````
轻量级且易于使用的python依赖注入库
[![构建状态](https://travis-ci.org/sighalt/pyhooker.svg?(https://travis ci.org/sighalt/pyhooker/pyhooker/pyhooker)
`` ` `
pip install git+https://github.com/sighalt/pyhooker.git
` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `
iWheel类(对象):
通过
michelinwheel类(iWheel):
通过
>通过
@pyhooker。注射参数(发动机=发动机,车轮类型:
>=iWheel)
定义初始(自我、发动机、车轮类型):
自发动机=发动机
自车轮=自车轮=自车轮类型
>Pyhooker.注册(IEngine,ottoengine)
pyhooker.register(iWheel,michelinwheel)
驾驶员.汽车.发动机,
驾驶员.汽车.车轮类型))
````