Techzdl

Latest version: v1.2.6

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2.5

UPDATED

**Single Threaded Download Fix:**
- Resolved an issue where, if a single threaded download failed, the download would restart from the beginning despite showing continued progress. Now, in case of a failure, a new progress will be created, and the download will restart correctly.

**Timeout Argument Removal:**
- Removed the timeout argument due to complexities and uncertainties in its implementation with `aiohttp` and `curl_cffi`. The timeout settings will now rely on the default configurations of these respective packages.

[Fixed Single Threaded Download, Removed timeout argument](https://github.com/TechShreyash/techzdl/commit/473241c911f80919c6e6ede4ed40aea55f88e12d)

**Full Changelog**: [v1.2.4...v1.2.5](https://github.com/TechShreyash/techzdl/compare/v1.2.4...v1.2.5)

1.2.4

ADDED

- [Unquoting Filenames](https://github.com/TechShreyash/techzdl/commit/ff8d2db5a2b9de1d3c74b2c0efba860cf99efcb0): Modifying the percent encoded filenames returned by server or if got from url

**Full Changelog**: https://github.com/TechShreyash/techzdl/compare/v1.2.3...v1.2.4

1.2.3

Added

- Introduced the `download_success` attribute to indicate successful downloads.
- Added the `download_error` attribute to capture exceptions during the download process.

> **Note:** The attributes `output_path`, `download_success`, and `download_error` are particularly useful when using the background download mode, as errors raised and the file path cannot be directly accessed.


For more details, check [TechZDL Attributes](https://github.com/TechShreyash/techzdl/blob/main/DOCS.md#attributes).

**Full Changelog**: [Compare v1.2.2...v1.2.3](https://github.com/TechShreyash/techzdl/compare/v1.2.2...v1.2.3)

1.2.2

Changed

- Improved progress update mechanism to only update when progress has increased.

**Full Changelog**: https://github.com/TechShreyash/techzdl/compare/v1.2.1...v1.2.2

1.2.1

Changed
- Updated the import and usage methods for TechZDL. See [here](https://github.com/TechShreyash/techzdl/blob/main/demos/basic_usage.py) for details.

Added
- Introduced a method to stop the running download process. Check out the example [here](https://github.com/TechShreyash/techzdl/blob/main/demos/force_stoping_download.py).
- Added background downloading option in the `.start()` method. Explore the demo [here](https://github.com/TechShreyash/techzdl/blob/main/demos/background_download.py).
- Enhanced and detailed the documentation for the TechZDL package. Refer to the updated [DOCS.md](https://github.com/TechShreyash/techzdl/blob/main/DOCS.md).

**Full Changelog**: [Compare v1.1.7...v1.2.1](https://github.com/TechShreyash/techzdl/compare/v1.1.7...v1.2.1)

1.1.7

Added
- New method .get_file_info()


python
This script demonstrates how to use the TechZDL package to fetch file information asynchronously.

import asyncio
from techzdl.api import TechZDL


async def main():
techzdl = TechZDL()

downloader = techzdl.get_downloader(url="https://link.testfile.org/bNYZFw")

Retrieve file information asynchronously
file_info = await downloader.get_file_info()

Print the retrieved file information
print(f"Filename: {file_info['filename']}")
print(f"Total Size: {file_info['total_size']} bytes")


asyncio.run(main())


Output

![image](https://github.com/TechShreyash/techzdl/assets/82265247/01b5e894-eb1c-48be-8ad8-74c8cb4b6349)

Changed
- Docs improved, added various demos

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.