/torrentp

Python torrent downloader - Download from torrent with .torrent file or magnet link, with just 3 lines of python code.

Primary LanguagePythonOtherNOASSERTION

TorrentP

Wrapped python library for downloading from torrent

Torrentp

Download from torrent with .torrent file or magnet link. With just 3 lines of python code.

PyPI version Supported Python versions Downloads

Installation

$ pip install torrentp

Also can be found on pypi

How can I use it?

  • Install the package by pip package manager.
  • After installing, you can use it and call the library.
  • You have to pass magnet link or torrent file, and a path for saving the file. use . (dot) for saving in current directory.

Download with magnet link:

from torrentp import TorrentDownloader
torrent_file = TorrentDownloader("magnet:...", '.')
torrent_file.start_download()

Or download with .torrent file:

from torrentp import TorrentDownloader
torrent_file = TorrentDownloader("test.torrent", '.')
torrent_file.start_download()

How can I limit the upload or download speed?

Download Using 0 (default number) means unlimited speed:

torrent_file.start_download(download_speed=0, upload_speed=0)

Or download with specifc number:

torrent_file.start_download(download_speed=2, upload_speed=1)

To do list

  • Limit upload and download speed
  • User can change the port
  • CLI
  • Pause / Resume

Star History

Star History Chart

Issues

Feel free to submit issues and enhancement requests or contact me via vida.page/nima.

Contributing

Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Update the Version inside init.py
  4. Commit changes to your own branch
  5. Push your work back up to your fork
  6. Submit a Pull request so that we can review your changes