py-dz-phone-number:阿尔及利亚电话号码作为Python中的值对象实现

时间:2021-02-03 01:07:10
【文件属性】:
文件名称:py-dz-phone-number:阿尔及利亚电话号码作为Python中的值对象实现
文件大小:14KB
文件格式:ZIP
更新时间:2021-02-03 01:07:10
mobile phone regex value-object algeria 阿尔及利亚电话号码作为价值对象 受启发,有一些区别(请参见下文)。 阿尔及利亚电话号码作为Python中的值对象实现。 这可以在您的域模型中使用,也可以与您喜欢的框架集成。 什么是价值客体? 在计算机科学中,值对象是表示简单实体的小对象,其简单性不基于标识:即,两个值对象在具有相同值时是相等的,不一定是同一对象。 阅读更多关于。 安装: pip install dz-phone-numbers 用法: from dz_phone_number import DZPhoneNumber dz_phone_number = DZPhoneNumber ( "0599000000" ) # or DZPhoneNumber.from_string("0599000000") dz_phone_number . indicative # dz_phone_number . operator_or_region # dz_phone_number . suffix # '9900
【文件预览】:
py-dz-phone-number-master
----dz_phone_number()
--------dz_phones.py(8KB)
--------enums.py(2KB)
--------__init__.py(145B)
--------exceptions.py(51B)
----tests()
--------conftest.py(2KB)
--------test_is_hashable.py(302B)
--------test_correctness.py(474B)
--------test_equality.py(717B)
--------__init__.py(0B)
--------test_is_value_error.py(155B)
--------test_immutability.py(431B)
--------test_is.py(1KB)
----LICENSE(1KB)
----setup.py(2KB)
----.gitignore(2KB)
----Makefile(879B)
----README.md(4KB)

网友评论