spiderforce4ai 1.4__tar.gz → 1.5__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: spiderforce4ai
3
- Version: 1.4
3
+ Version: 1.5
4
4
  Summary: Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service
5
5
  Home-page: https://petertam.pro
6
6
  Author: Piotr Tamulewicz
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "spiderforce4ai"
7
- version = "1.4"
7
+ version = "1.5"
8
8
  description = "Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service"
9
9
  readme = "README.md"
10
10
  authors = [{name = "Piotr Tamulewicz", email = "pt@petertam.pro"}]
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name="spiderforce4ai",
6
- version="1.4",
6
+ version="1.5",
7
7
  author="Piotr Tamulewicz",
8
8
  author_email="pt@petertam.pro",
9
9
  description="Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service",
@@ -296,17 +296,25 @@ class SpiderForce4AI:
296
296
 
297
297
  results.append(result)
298
298
 
299
- # Save report if enabled
300
- if config.save_reports:
301
- self._save_report_sync(results, config)
302
- print(f"\nReport saved to: {config.report_file}")
303
-
304
- # Print summary
299
+ # Calculate statistics
305
300
  successful = len([r for r in results if r.status == "success"])
306
301
  failed = len([r for r in results if r.status == "failed"])
302
+
303
+ # Print summary
307
304
  print(f"\nParallel processing completed:")
308
305
  print(f"✓ Successful: {successful}")
309
306
  print(f"✗ Failed: {failed}")
307
+
308
+ # Save report if enabled
309
+ if config.save_reports and config.report_file:
310
+ self._retry_stats = {
311
+ "initial_failures": failed,
312
+ "failure_ratio": (failed / len(urls)) * 100,
313
+ "retry_successful": 0, # No retries in server parallel mode
314
+ "retry_failed": failed
315
+ }
316
+ self._save_report_sync(results, config)
317
+ console.print(f"📊 Report saved to: {config.report_file}")
310
318
 
311
319
  return results
312
320
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: spiderforce4ai
3
- Version: 1.4
3
+ Version: 1.5
4
4
  Summary: Python wrapper for SpiderForce4AI HTML-to-Markdown conversion service
5
5
  Home-page: https://petertam.pro
6
6
  Author: Piotr Tamulewicz
File without changes
File without changes