--- id: libtorrent version: "2.1.1" license: BSD license_treatment: permissive maintenance: active --- # libtorrent — Python bindings for libtorrent-rasterbar License: permissive · Maintenance: active · Downloads: 91.5K/mo ## What it is and what it does Libtorrent is a Python binding to the libtorrent-rasterbar C++ library, providing low-level access to torrent protocol operations. It lets you build torrent clients, seeders, or peer-to-peer applications in Python by wrapping the underlying native library's session management, torrent handling, and peer communication. The package ships as precompiled wheels for multiple platforms and Python versions, eliminating the need to compile libtorrent yourself. With no runtime dependencies and active maintenance, it's ready to use immediately after installation, though you'll need to understand the libtorrent API surface to build applications with it. Use it for: - Build a custom torrent client or downloader application with fine-grained protocol control. - Seed files or manage peer-to-peer distribution of large datasets without a separate torrent application. - Integrate torrent functionality into an existing Python application for content delivery. - Research or test BitTorrent protocol behavior and peer interactions programmatically. - Implement decentralized file-sharing features in a Python service or tool. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python bindings for libtorrent-rasterbar, enabling torrent protocol operations from Python code. Yes, if you need torrent protocol support in Python. Active maintenance, no vulnerabilities, permissive license, and medium install friction via prebuilt wheels make it practical. Verify Python version compatibility before installing, as the metadata does not specify a minimum version. Not needed for simple torrent downloads—consider a standalone client instead. ## Install pip install libtorrent uv add libtorrent poetry add libtorrent ## Installing libtorrent Before you install: Medium install friction due to compiled wheels; prebuilt binaries available for common platforms (macOS, Linux, Windows, multiple architectures). Active maintenance with recent release (4 days old). No runtime dependencies simplifies deployment. License in practice: BSD permissive license allows use in most projects with minimal restrictions; review license text for specific attribution or liability terms if bundling. Quickstart: pip install libtorrent import libtorrent # Create a session and add torrents via the libtorrent API Requires a compatible Python version and platform architecture matching available wheels; no official Python version constraint documented. Verify before relying: - Exact Python version support range (requires_python is unspecified in metadata) - Whether documentation exists beyond the homepage link - API stability guarantees or breaking-change policy across versions ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: medium - Maintenance: active - Downloads: 91.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags torrent protocol python, libtorrent bindings, python torrent client, bittorrent library python, torrent download python, p2p file sharing python, torrent management, p2p-networking, torrent-protocol, native-bindings [View on SkillFed](https://skillfed.io/packages/libtorrent) · [View on PyPI](https://pypi.org/project/libtorrent/)