python的ddd基本框架
ddd-api-gatewa的Python项目详细描述
DDD API网关框架
安装
源代码:
python setup.py install
来自PYPI:
pip install ddd-api-gateway
使用量
from ddd_base.value_object import ValueObject class TheValueObject(ValueObject): def __init__(self, name): super(TheValueObject, self).__init__() self.name = name def __eq__(self, other): if not isinstance(other, ValueObject): return NotImplemented return self.name == other.name def test_value_object_compare(): a_value_object = TheValueObject("name") b_value_object = TheValueObject("name") assert a_value_object.same_as(b_value_object)
更改日志
0.0.3
- 添加实体存储库
0.0.2
- 调整Travis测试并覆盖所有百分比
0.0.1
- 首次公开发行