Python BitTorrent 库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4418157/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 15:41:00  来源:igfitidea点击:

Python BitTorrent Library

pythonbittorrent

提问by Ravi Raj

Is there a Python BitTorrent library that just works?

是否有一个可以正常工作的 Python BitTorrent 库?

I need to tinker around with BitTorrent protocol for a research project and I don't want to reinvent the wheel and write my own implementation of the protocol (and neither I am capable of doing so)

我需要为一个研究项目修改 BitTorrent 协议,我不想重新发明轮子并编写我自己的协议实现(而且我都没有能力这样做)

I looked at the sources for the official BitTorrent client, but that is not what I am looking for. A library/ module is what I would prefer.

我查看了官方 BitTorrent 客户端的来源,但这不是我要找的。库/模块是我更喜欢的。

Thanks!

谢谢!

采纳答案by Frédéric Hamidi

You might want to have a look at the python-libtorrentproject. It's a wrapper around the libtorrentC++ library, which claims to be efficient and easy to use.

你可能想看看python-libtorrent项目。它是libtorrentC++ 库的包装器,声称高效且易于使用。

回答by abhijeet

BitTornadois pure Python library written by John Hoffman.

BitTornado是由John Hoffman编写的纯 Python 库。