首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 图书馆帮助实体验证创造价值对象

图书馆帮助实体验证创造价值对象

资 源 简 介

Library with a lot of unit test to help creation of Entities and ValueObjects in Python with easy validation, inspired by sintax of GORM of Groovy. Class Entity and ValueObject extends DataObject class. The DataObject class has a common implementation of str and ValueObject has an common implementation of eq and ne methods. Class OrderedValueObject extends ValueObject and implement lt, le, gt and ge methods with easy customization. This project is independent of database or web-frameworks stuff, like most of programs of validation. So you can use it in Scripts/GUI/Console/WebApplications programs without necessity of adaptation and configuration files. It is also extensible and easy to register new constraints for validation. Example of usage: Entity ``` from domain import dataobjects class MyEntity(dataObject.Entity): def __init__(self): self.someint = 1 self.somefloat = 1.23 self.somestring = "ab

文 件 列 表

python-dataobjects-0.1
dataobjects
PKG-INFO
setup.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 开心快活人 1小时前 成为了本站会员

  • 晋财 2小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

0.228422s