cloudnet-api-client 0.5.0__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/CHANGELOG.md +5 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/PKG-INFO +1 -1
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/cloudnet_api_client/dl.py +3 -2
- cloudnet_api_client-0.5.1/cloudnet_api_client/version.py +1 -0
- cloudnet_api_client-0.5.0/cloudnet_api_client/version.py +0 -1
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/.github/workflows/publish.yml +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/.github/workflows/test.yml +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/.gitignore +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/.pre-commit-config.yaml +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/LICENSE +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/README.md +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/cloudnet_api_client/__init__.py +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/cloudnet_api_client/client.py +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/cloudnet_api_client/containers.py +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/cloudnet_api_client/py.typed +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/cloudnet_api_client/utils.py +0 -0
- {cloudnet_api_client-0.5.0 → cloudnet_api_client-0.5.1}/pyproject.toml +0 -0
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.5.1 – 2025-04-04
|
|
9
|
+
|
|
10
|
+
- Raise if downloading failed after retries
|
|
11
|
+
- Adjust logging
|
|
12
|
+
|
|
8
13
|
## 0.5.0 – 2025-04-04
|
|
9
14
|
|
|
10
15
|
- Add option to query one site
|
|
@@ -30,7 +30,7 @@ async def download_files(
|
|
|
30
30
|
destination = output_path / meta.download_url.split("/")[-1]
|
|
31
31
|
full_paths.append(destination)
|
|
32
32
|
if destination.exists() and _file_checksum_matches(meta, destination):
|
|
33
|
-
logging.
|
|
33
|
+
logging.debug(f"Already downloaded: {destination}")
|
|
34
34
|
continue
|
|
35
35
|
task = asyncio.create_task(
|
|
36
36
|
_download_file_with_retries(
|
|
@@ -61,6 +61,7 @@ async def _download_file_with_retries(
|
|
|
61
61
|
logging.warning(f"Attempt {attempt} failed for {url}: {e}")
|
|
62
62
|
if attempt == max_retries:
|
|
63
63
|
logging.error(f"Giving up on {url} after {max_retries} attempts.")
|
|
64
|
+
raise e
|
|
64
65
|
else:
|
|
65
66
|
# Exponential backoff before retrying
|
|
66
67
|
await asyncio.sleep(2**attempt)
|
|
@@ -93,7 +94,7 @@ async def _download_file(
|
|
|
93
94
|
break
|
|
94
95
|
file_out.write(chunk)
|
|
95
96
|
bar.update(len(chunk))
|
|
96
|
-
logging.
|
|
97
|
+
logging.debug(f"Downloaded: {destination}")
|
|
97
98
|
|
|
98
99
|
|
|
99
100
|
def _file_checksum_matches(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.5.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.5.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|