Skip to content

If you want a progress bar when downloading files in your python app, this is the library for you.

License

Notifications You must be signed in to change notification settings

DEADSEC-SECURITY/pretty-downloader

Repository files navigation

Pretty Downloader Version Python_Version License Donate

CodeQL

PyPI - Downloads PyPI - Downloads PyPI - Downloads

📝 CONTRIBUTIONS

Before doing any contribution read CONTRIBUTING.

📧 CONTACT

Email: [email protected]

General Discord: https://discord.gg/dFD5HHa

Developer Discord: https://discord.gg/rxNNHYN9EQ

📥 INSTALLING

Latest PyPI stable release

pip install pretty-downloader

⚙ HOW TO USE

import pretty_downloader
pretty_downloader.download(<YOUR URL>)

OR

from pretty_downloader import download
download(<YOUR URL>)

🤝 PARAMETERS

  • url : str, required
    • This should be the url of the file you wish to download
  • file_path : str, optional
    • The path to save the file (Default: "")
  • file_name : str, optional
    • The file name you want the file to be saved with. Should include file extension (Default: None)
  • show_progress : bool, optional
    • Option to disable/enable the default progress bar (Default: True)
  • name : str, optional
    • The name you want to appear in the progress bar (default: 'Download progress')
  • block_size : int, optional
    • The size of the download block (Default: 1024)
  • proxies : dict, optional
  • headers : dict, optional
    • Dictionary of headers (Default: None)
    • Example: {'user-agent': 'Mozilla/5.0'}
  • RETURNS: Path of file downloaded

🖼️ SCRIPT SCREENSHOTS & VIDEOS

alt text