Here’s a concise and professional description for your libtorrent
repository for Python 3.12 on GitHub:
This repository provides Python bindings for libtorrent, a powerful BitTorrent library written in C++. The bindings are compatible with Python 3.12 and include all core functionalities of libtorrent.
- Full support for BitTorrent protocol, including DHT, encryption, and peer exchange.
- Lightweight and efficient, leveraging C++ performance.
- Pythonic interface for ease of use in Python projects.
- Compatible with Python 3.12 and built using Boost.Python.
./autoinstall.sh
To build and install the bindings from source, ensure you have the required dependencies:
- Boost (with Boost.Python)
- OpenSSL
- Python 3.11,3.12,3.13+, development headers
Here’s a simple example to get started:
import libtorrent as lt
# Create a session
ses = lt.session()
ses.listen_on(6881, 6891)
# Add a torrent
info = lt.torrent_info("example.torrent")
h = ses.add_torrent({'ti': info, 'save_path': './'})
# Start downloading
print(f"Downloading {h.name()}...")
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. Ensure all code adheres to the repository’s coding standards and includes appropriate tests.
This project is licensed under the BSD License, following the original libtorrent license.
Feel free to customize this description further based on the specific setup or goals of your repository.