很好的包裹。

barge的Python项目详细描述


PyPI-StatusPyPI-VersionsBuild-StatusCodecovLICENCE

python的简单枚举。

>>>RGB=StringEnum(['Red','Green','Blue'])>>>RGB.Red'Red'

1   Installation

使用以下命令安装ezenum

pip install ezenum

2   Features

  • 纯Python。
  • 与Python3.5+兼容。
  • 轻松创建usefull枚举对象。
  • 具有统一值和名称属性的字符串枚举。

3   Use

stringenum

很容易从字符串列表中获取字符串枚举。

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.2   Running the tests

要运行测试,请使用:

python -m pytest --cov=ezenum

4.3   Adding documentation

这个项目是使用numpy docstring conventions来记录的,之所以选择它们,是因为它们可能是最广泛传播的约定,它们都得到了sphinx等常用工具的支持,并产生了人类可读的docstring(当然,在我个人看来)。在记录添加到此项目中的代码时,请遵循these conventions

5   Credits

由shay palachy创建(shay.palachy@gmail.com)。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何使用Ibatis在插入时返回ID(使用返回关键字)   java(org.hibernate.TransactionException)org。冬眠TransactionException:事务未成功启动   java小程序jwindow始终位于JNLP顶部   在Java中重新解析JSON对象?   java单击后将ListView数据移动到新屏幕   Mule ESB中的java WSA寻址特性   Java,对象编程:获取返回0值的方法   hibernate的Java通用问题,如何处理T get(K id)   java在使用超级CSV读取CSV时忽略引用   ssh使用Java远程运行命令   java如何向具体用户发送websocket消息?   在JAVA中,我可以在不指定的情况下使用条件运算符吗?