【文件属性】:
文件名称:py-flags:Python 3的类型安全(位)标志
文件大小:30KB
文件格式:ZIP
更新时间:2021-05-23 18:59:49
Python
py标志
类型安全(位)标志
笔记
Python 3.6+用户应该考虑使用标准enum模块的Flag和IntFlag类。 这些非常类似于此flags.Flags类。
只需阅读简短的“和“部分就可以开始使用该模块。 剩下的就是细节。
内容
别名
遗产
使用函数调用语法进行子类化
支持的运营
实例方法和属性
类方法
@unique和@unique_bits装饰器
序列化
泡菜
自定义序列化
实施细节
内省
效率
安装
pip install py-flags
或者,您可以从以下位置下载发行版:
https://pypi.python.org/pypi/py-flags#downloads
https://github.com/pasztorpisti/py-flags/releases
快速概述
使用此模块,您可以定义类型安全(位)标志。 标志定义的样式与您可以使用python
【文件预览】:
py-flags-master
----MANIFEST.in(68B)
----README.rst(29KB)
----LICENSE.txt(1KB)
----src()
--------flags.py(29KB)
----.codacy.yml(59B)
----.travis.yml(464B)
----setup.py(2KB)
----tests()
--------test_arithmetic.py(19KB)
--------test_flags.py(40KB)
--------test_pickling.py(4KB)
--------__init__.py(0B)
--------test_base.py(2KB)
--------test_decorators.py(3KB)
----.gitignore(117B)
----.landscape.yml(62B)