comaps-map-distributor 0.2.0__tar.gz → 0.3.0__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.
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/PKG-INFO +1 -1
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/pyproject.toml +1 -1
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/src/comaps_map_distributor/downloader.py +2 -1
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/COPYING +0 -0
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/README.md +0 -0
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/src/comaps_map_distributor/__init__.py +0 -0
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/src/comaps_map_distributor/app.py +0 -0
- {comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/src/comaps_map_distributor/server.py +0 -0
|
@@ -159,11 +159,12 @@ def download_maps(selected_maps, base_url, map_version, download_location):
|
|
|
159
159
|
per_file_progress = download_progress.add_task(
|
|
160
160
|
"[yellow]File: {}".format(map_name),
|
|
161
161
|
total=int(r.headers.get("content-length", 0)))
|
|
162
|
-
with open(local_filename, 'wb') as f:
|
|
162
|
+
with open(local_filename+".part", 'wb') as f:
|
|
163
163
|
for chunk in r.iter_content(chunk_size=8192):
|
|
164
164
|
f.write(chunk)
|
|
165
165
|
download_progress.update(per_file_progress, advance=8192)
|
|
166
166
|
download_progress.update(per_file_progress, visible=False)
|
|
167
|
+
os.rename(local_filename+".part", local_filename)
|
|
167
168
|
download_progress.update(overall_progress, advance=1)
|
|
168
169
|
print(":white_check_mark:[bold] Downloaded: [/bold][italic]{}[/italic] from {}".format(
|
|
169
170
|
map_name,
|
|
File without changes
|
|
File without changes
|
{comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/src/comaps_map_distributor/__init__.py
RENAMED
|
File without changes
|
{comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/src/comaps_map_distributor/app.py
RENAMED
|
File without changes
|
{comaps_map_distributor-0.2.0 → comaps_map_distributor-0.3.0}/src/comaps_map_distributor/server.py
RENAMED
|
File without changes
|