libtorrent can be built as a python module. The best way to build the python bindings is using setup.py. This invokes b2 under the hood, so you must have all of libtorrent's build dependencies ...