Python Smart Download Manager – pySmartDL¶
pySmartDL
strives to be a full-fledged smart download manager for Python. Main features:
- Built-in download acceleration (with the multipart downloading technique).
- Mirrors support.
- Pause/Unpause feature.
- Speed limiting feature.
- Hash checking.
- Non-blocking, shows progress bar, download speed and eta.
- Full support for custom headers and methods.
- Python 3 Support
Project Links¶
- Downloads: http://pypi.python.org/pypi/pySmartDL/
- Documentation: http://itaybb.github.io/pySmartDL/
- Project page: https://github.com/iTaybb/pySmartDL/
- Bugs and Issues: https://github.com/iTaybb/pySmartDL/issues
Usage¶
Download is as simple as creating an instance and starting it:
from pySmartDL import SmartDL
url = “https://github.com/iTaybb/pySmartDL/raw/master/test/7za920.zip” dest = “C:\Downloads" # or ‘~/Downloads/’ on linux
obj = SmartDL(url, dest) obj.start() # [*] 0.23 Mb / 0.37 Mb @ 88.00Kb/s [##########——–] [60%, 2s left]
path = obj.get_dest()
Requirements¶
- Python 3.4 or greater.
Documentation¶
- Code Examples
- Example 1: Downloading a file and running it
- Example 2: Downloading a file to a temporarily location, not showing progress bar
- Example 3: Mirrors are also supported
- Example 4: Passing custom options to urllib.request.Request()
- Example 5: Fetch data to memory instead of reading it from a file
- Example 6: Use the nonblocking flag and get information during the download process
- Example 7: Hash checking
- Example 8: No ssl verification
- Documentation
- Notes
- To-Do List