Skip to content

Robitnik/libtorrent3.12

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here’s a concise and professional description for your libtorrent repository for Python 3.12 on GitHub:


libtorrent for Python 3.12

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.

Features

  • 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.

Auto building for Fedora 40, 41

./autoinstall.sh

Building from source:

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

Examples

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()}...")

Contributing

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.

License

This project is licensed under the BSD License, following the original libtorrent license.

Links


Feel free to customize this description further based on the specific setup or goals of your repository.

About

Libtorrent for python3.12+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages