xolox彩色日志的分支,可以记录到travis和jupyter
bitranox-coloredlogs的Python项目详细描述
bitranox_彩色日志
版本v14.0.9自2020-10-09起参见Changelog
xolox彩色日志的分支,可以记录到travis和jupyter
由于参数isatty的行为不像预期的(应该强制)颜色,所以原始版本是这样的 在travis和jupyter(stdout)上不显示颜色。在
有了这个版本,你可以在jupyter和travis上有彩色日志。在
我希望Peter接受我的PullRequest,然后我可以删除这个剥离(无测试)版本
在这里找到原件:https://coloredlogs.readthedocs.io/en/latest/
自动化测试、Travis矩阵、文档、徽章等由PizzaCutter(cookiecutter on steroids)管理
需要Python版本:3.6.0或更高版本
使用python3.6、3.7、3.8、3.8-dev、pypy3在linux“仿生”上进行测试-体系结构:amd64、ppc64le、s390x、arm64
在Linux, macOS, Windows下测试,自动每日构建和监视
在线试用
您可以使用“启动活页夹”徽章在Jupyter笔记本中立即尝试,或单击here
用法
import the module and check the code - its easy and documented there, including doctest examples. in case of any questions the usage section might be expanded at a later time
命令行的用法
^{pr2}$安装和升级
- 在开始之前,强烈建议您更新pip和设置工具:
python -m pip --upgrade pip python -m pip --upgrade setuptools
- 要通过pip从PyPi安装最新版本(推荐):
python -m pip install --upgrade bitranox_coloredlogs
- 要通过pip从github安装最新版本:
python -m pip install --upgrade git+https://github.com/bitranox/bitranox_coloredlogs.git
- 包括在你的要求.txt公司名称:
# Insert following line in Your requirements.txt: # for the latest Release on pypi: bitranox_coloredlogs # for the latest development version : bitranox_coloredlogs @ git+https://github.com/bitranox/bitranox_coloredlogs.git # to install and upgrade all modules mentioned in requirements.txt: python -m pip install --upgrade -r /<path>/requirements.txt
- 要从源代码安装最新的开发版本:
# cd ~ $ git clone https://github.com/bitranox/bitranox_coloredlogs.git $ cd bitranox_coloredlogs python setup.py install
- 通过生成文件: makefile是一种非常方便的安装方式。在这里我们可以做得更多, 比如安装虚拟环境、清理缓存等等。在
# from Your shell's homedirectory: $ git clone https://github.com/bitranox/bitranox_coloredlogs.git $ cd bitranox_coloredlogs # to run the tests: $ make test# to install the package $ make install # to clean the package $ make clean # uninstall the package $ make uninstall
要求
将自动安装以下模块:
## project requirements click humanfriendly >=7.1
致谢
- 特别感谢“鲍勃叔叔”罗伯特·C·马丁,特别是他关于“干净代码”和“干净架构”的书
贡献
我很乐意为你叉和发送我的请求,为这个项目。 -please Contribute
变更日志
- 新API的主要版本更改不兼容
- 新的次要版本,以向后兼容的方式添加了功能
- 新的补丁版本,用于向后兼容的错误修复
v14.0.9
- 2020-10-09:服务发布
- 更新travis build matrix for linux 3.9-dev
- 为windows 3.9/3.10更新travis构建矩阵(路径)
v14.0.8
- 2020-08-08:服务发布
- 修复文档
- 修理特拉维斯
- 不推荐pycodestyle
- 机具薄片8
v14.0.7
2020-08-01:修复pypi部署
v14.0.6
2020-07-31:修复特拉维斯建筑
v14.0.5
- 2020-07-29:功能发布
- 使用新的Pizzaker模板
v14.0.4
- 2020-07-17:补丁发布
- 添加了\uu init_uu.pyi文件以进行最小类型注释
- 把它做成PEP561包
v14.0.2
2020-07-17:TTY-c的@EpicWink默认流他妈的是斯特德
v14.0.1
- 使参数安装(isatty=True)强制ColorFormatter
- 项目
标签: