{"library":"pySmartDL","title":"pySmartDL","description":"pySmartDL is a Smart Download Manager for Python, providing features such as built-in download acceleration, mirror support, pause/unpause, speed limiting, and hash checking. It operates in a non-blocking manner and shows a progress bar, download speed, and ETA. The library version 1.3.4 was last updated on PyPI in September 2020, and the original project is not actively maintained, though a community fork exists.","language":"python","status":"maintenance","last_verified":"Thu Apr 16","install":{"commands":["pip install pySmartDL"],"cli":null},"imports":["from pySmartDL import SmartDL","from pySmartDL import SmartDL, HashFailedException"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom pySmartDL import SmartDL\n\n# A URL to download (using a dummy placeholder for actual use)\nurl = \"https://example.com/some_file.zip\" \n# Ensure the destination directory exists\ndest = os.path.join(os.getcwd(), \"downloads\")\nos.makedirs(dest, exist_ok=True)\n\nobj = SmartDL(url, dest)\nobj.start() # Blocks until download is complete\n\nif obj.isSuccessful():\n    print(f\"Download finished: {obj.get_dest()}\")\nelse:\n    print(\"Download failed. Errors:\")\n    for e in obj.get_errors():\n        print(str(e))","lang":"python","description":"This quickstart downloads a file to a specified destination. The `SmartDL` object's `start()` method is blocking by default. Error handling is included to report any download failures.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}