nyoibo:在Python中自动创建属性访问器

时间:2021-03-28 10:58:21
【文件属性】:
文件名称:nyoibo:在Python中自动创建属性访问器
文件大小:658KB
文件格式:ZIP
更新时间:2021-03-28 10:58:21
attributes accessors getter-and-setter Python Nyoibo Nyoibo是避免Python中具有“私有”属性的重复代码的简便方法。 安装 您可以使用pip安装nyoibo。 Nyoibo需要python 3.6或更高版本。 pip install nyoibo “ nyoibo”是什么意思? Nyoibo是他的祖父Son Gohan送给Son Goku的神秘工作人员。 用法 而不是这样做: class Example : def __init__ ( self , value = None , other_value = None , default = 'hello' ) self . _value = value self . _other_value = other_value self . _default = default def get_valu
【文件预览】:
nyoibo-master
----.circleci()
--------config.yml(775B)
----.gitignore(106B)
----nyoibo.png(546KB)
----README.rst(4KB)
----CHANGELOG.md(100B)
----.pre-commit-config.yaml(467B)
----nyoibo()
--------fields.pxd(248B)
--------exceptions.py(136B)
--------entities()
--------__init__.py(67B)
--------fields.c(608KB)
--------fields.pyx(5KB)
----tests()
--------test_extend_entity.py(2KB)
--------test_fields.py(5KB)
--------__init__.py(0B)
--------test_entity.py(5KB)
----run_tests.sh(216B)
----docs()
--------make.bat(799B)
--------conf.py(2KB)
--------installation.rst(83B)
--------index.rst(375B)
--------api()
--------usage.rst(5KB)
--------requirements.txt(59B)
--------Makefile(638B)
----LICENSE(7KB)
----.coveragerc(43B)
----setup.py(2KB)
----.readthedocs.yml(129B)
----run_radon.sh(42B)
----run_xenon.sh(48B)
----requirements_dev.txt(131B)

网友评论