torrentstream:基于libtorrent的Python简单的BitTorrent流库 源码

上传:different_80828 浏览: 30 推荐: 0 文件:ZIP 大小:256KB 上传时间:2021-05-10 18:12:54 版权申诉
Libtorrent变得容易 这是pythonic的高级libtorrent API,其灵感来自于Kenneth Reitz( )提出的以人为本的趋势。 TorrentStream围绕着流洪流的原理(顺序下载,缓冲和播放)。 TorrentStream公开了CLI命令,仅供示例使用。 洪流对象是上下文管理器,可以在您使用完它们后清除torrent内容。 TorrentSession的add_torrent方法返回一个Torrent对象,因此可以直接用作上下文管理器。 async def stream_torrent ( hash_torrent ): session = TorrentSession () # By default this will cleanup torrent contents after playing with session
上传资源
用户评论