torrent_parser:.torrent文件解析器和Python 2和3的创建者

时间:2021-05-11 08:08:06
【文件属性】:
文件名称:torrent_parser:.torrent文件解析器和Python 2和3的创建者
文件大小:213KB
文件格式:ZIP
更新时间:2021-05-11 08:08:06
Python 种子文件解析器和Python创建者 .torrent文件的简单解析器。 也可以在0.2.0版之后编辑并写回到torrent格式。 特征 种子文件的解码器和编码器 使用指定的编码和错误处理程序将字节字段自动解码为字符串 使用auto编码时自动检测编码(需要安装chardet ) 自动解码提交到哈希块的哈希值,也可以自定义 提供的CLI,带有JSON输出 安装 pip install torrent_parser 用法: 命令行界面 $ pytp test.torrent $ cat test.torrent | pytp 作为一个模块 >>> import torrent_parser as tp >>> data = tp.parse_torrent_file( ' test.torrent ' ) >>> data[ ' announce ' ] http://tracker.tr
【文件预览】:
torrent_parser-master
----MANIFEST.in(39B)
----torrent_parser.py(20KB)
----LICENSE(1KB)
----setup.cfg(92B)
----setup.py(1KB)
----README.md(2KB)
----tests()
--------test_hash_raw.py(816B)
--------test_encode.py(211B)
--------test_encoding_error.py(889B)
--------test_decode.py(211B)
--------__init__.py(201B)
--------test_parse.py(2KB)
--------test_create.py(1KB)
--------test_hash_field.py(722B)
--------test_files()
----.gitignore(791B)
----CHANGELOG.md(3KB)

网友评论