r当前迁移实用程序
rtorrent-migrate的Python项目详细描述
r当前迁移
rtorrent migrate是一个命令行实用程序,用于大容量转换rtorrent中torrent的数据和/或会话目录
它还包括一个可以在Python脚本中使用的类
使用文档和示例可用here
要求
安装
从PyPI安装:
pip3 install rtorrent-migrate
从源安装:
^{pr2}$如果不想安装,也可以直接运行模块:
# Run from within the git repo
python3 -m rtorrent_migrate --help
测试
使用内置的unittest
模块运行测试,Coverage.py用于测量代码覆盖率
在不测量覆盖率的情况下运行测试:
python3 -m unittest discover -s tests -t .
运行测试并测量覆盖率:
coverage run -m unittest discover -s tests -t .
查看结果:
coverage report
生成详细报告,输出到./htmlcov
:
coverage html
建筑文件
Sphinx用于构建文档
构建要求:
如何构建:
cd docs
make html
- 项目
标签: