esp-batch-uploader 1.0.0__tar.gz → 1.0.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.
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/PKG-INFO +1 -1
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/batch_manager.py +1 -1
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/upload_client.py +10 -6
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/PKG-INFO +1 -1
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/setup.py +1 -1
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/MANIFEST.in +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/README.md +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/__init__.py +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/__main__.py +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/config.py +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/logger.py +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/__init__.py +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/discovery.py +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/upload_runner.py +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/SOURCES.txt +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/dependency_links.txt +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/entry_points.txt +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/requires.txt +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/top_level.txt +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/requirements.txt +0 -0
- {esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/setup.cfg +0 -0
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/batch_manager.py
RENAMED
@@ -39,4 +39,4 @@ async def run_batches(files_dir, batch_size, udp_port, logger, status_logger):
|
|
39
39
|
await upload_to_batch(batch, file_paths, logger, status_logger)
|
40
40
|
|
41
41
|
logger.info("All batches processed.")
|
42
|
-
status_logger.info("
|
42
|
+
status_logger.info("[SUCCESS] All uploads completed")
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/upload_client.py
RENAMED
@@ -27,17 +27,17 @@ class UploadClient:
|
|
27
27
|
duration = time.time() - start_time
|
28
28
|
if resp.status == 200:
|
29
29
|
speed = file_size / duration if duration > 0 else 0
|
30
|
-
self.logger.info(f"
|
31
|
-
self.status_logger.info(f"
|
30
|
+
self.logger.info(f"[SUCCESS] Uploaded {remote_name} to {self.ip} in {duration:.2f}s ({speed/1024/1024:.2f} MB/s)")
|
31
|
+
self.status_logger.info(f"[SUCCESS] {self.ip} <- {remote_name} OK")
|
32
32
|
return True
|
33
33
|
else:
|
34
34
|
text = await resp.text()
|
35
|
-
self.logger.error(f"
|
36
|
-
self.status_logger.info(f"
|
35
|
+
self.logger.error(f"[ERROR] Upload failed: {resp.status} - {text}")
|
36
|
+
self.status_logger.info(f"[ERROR] {self.ip} <- {remote_name} FAILED")
|
37
37
|
return False
|
38
38
|
except Exception as e:
|
39
39
|
self.logger.exception(f"Upload error to {self.ip}: {e}")
|
40
|
-
self.status_logger.info(f"
|
40
|
+
self.status_logger.info(f"[ERROR] {self.ip} <- {remote_name} ERROR")
|
41
41
|
return False
|
42
42
|
|
43
43
|
async def upload_files(self, file_paths):
|
@@ -48,4 +48,8 @@ class UploadClient:
|
|
48
48
|
if not success:
|
49
49
|
self.logger.warning(f"Retrying {remote_name} to {self.ip} after failure")
|
50
50
|
await asyncio.sleep(2)
|
51
|
-
await self.upload_file(session, path, remote_name)
|
51
|
+
success = await self.upload_file(session, path, remote_name)
|
52
|
+
if not success:
|
53
|
+
self.logger.error(f"Retry failed for {remote_name} to {self.ip}")
|
54
|
+
self.status_logger.info(f"[ERROR] {self.ip} <- {remote_name} RETRY FAILED")
|
55
|
+
await asyncio.sleep(2) # Wait before next file
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='esp-batch-uploader',
|
5
|
-
version='1.0.
|
5
|
+
version='1.0.1',
|
6
6
|
description='Batch file uploader to ESP32 devices over HTTP with UDP discovery',
|
7
7
|
author='Abdullah Bajwa', # Optional but good practice
|
8
8
|
packages=find_packages(exclude=["tests*", "examples*"]), # Avoid packaging examples/tests
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/__init__.py
RENAMED
File without changes
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/discovery.py
RENAMED
File without changes
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader/uploader/upload_runner.py
RENAMED
File without changes
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/entry_points.txt
RENAMED
File without changes
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/requires.txt
RENAMED
File without changes
|
{esp_batch_uploader-1.0.0 → esp_batch_uploader-1.0.1}/esp_batch_uploader.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|