很好的包裹。
floob的Python项目详细描述
python的简单枚举。
>>>RGB=StringEnum(['Red','Green','Blue'])>>>RGB.Red'Red'
内容
2 Features
- 纯Python。
- 与Python3.5+兼容。
- 轻松创建usefull枚举对象。
- 具有统一值和名称属性的字符串枚举。
4 Contributing
包作者和当前维护者是shay palachy(shay.palachy@gmail.com);非常欢迎您向他寻求帮助。
4.1 Installing for development
克隆:
git clone git@github.com:shaypal5/ezenum.git
以开发模式安装,测试依赖项:
cd ezenum pip install -e ".[test]"
4.3 Adding documentation
这个项目是使用numpy docstring conventions来记录的,之所以选择它们,是因为它们可能是最广泛传播的约定,它们都得到了sphinx等常用工具的支持,并产生了人类可读的docstring(当然,在我个人看来)。在记录添加到此项目中的代码时,请遵循these conventions。
5 Credits
由shay palachy创建(shay.palachy@gmail.com)。