26

Is there a Python BitTorrent library that just works?

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)

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.

Thanks!

Ravi Raj
  • 271
  • 1
  • 3
  • 4
  • See also here: http://stackoverflow.com/questions/6843978/nice-bittorrent-tracker-api/6857129#6857129 – Jakub M. Jul 28 '11 at 10:00
  • Checkout this version. Pure python running with Twister. this is a [Fork of ABTorrent](https://github.com/joshsziegler/AutonomoTorrent), a minimal, pure python BitTorrent client implementation using Twisted. – cph Apr 26 '13 at 04:41
  • [github](https://github.com/search?q=bittorrent+language%3APython&ref=opensearch&type=repositories&p=1&l=Python) has some pure python bittorrent clients. https://github.com/borzunov/bit-torrent https://github.com/gallexis/pytorrent https://github.com/kishanpatel22/bittorrent https://github.com/santazhang/BitTorrent-5.3-GPL https://github.com/alal4465/BitTorrent-Client https://github.com/yamatt/python-pythorrent https://github.com/effigies/BitTornado – milahu Mar 30 '23 at 21:07

2 Answers2

19

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

Gringo Suave
  • 29,931
  • 6
  • 88
  • 75
Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479
  • 1
    Thanks, but is there a pure Python project available? Note that I need this to be as easy as possible. I just checked out the project and compiled it, but I don't expect/ don't want the end user to do all this. A pure Python implementation would be perfect in case you know about it. – Ravi Raj Dec 11 '10 at 18:52
  • 1
    @Ravi, sorry, I don't know of any pure python implementation besides the "official" client. – Frédéric Hamidi Dec 11 '10 at 19:03
13

BitTornado is pure Python library written by John Hoffman.

Jason Sundram
  • 12,225
  • 19
  • 71
  • 86
abhijeet
  • 459
  • 5
  • 15