webtools-cli 1.2.1__tar.gz → 1.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
@@ -29,6 +29,8 @@ Requires-Dist: Pillow
29
29
  Requires-Dist: mtranslate
30
30
  Requires-Dist: colorama
31
31
  Requires-Dist: playwright
32
+ Requires-Dist: mega.py
33
+ Requires-Dist: pycryptodome
32
34
  Requires-Dist: pyreadline3; platform_system == "Windows"
33
35
  Provides-Extra: playwright
34
36
  Requires-Dist: playwright; extra == "playwright"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "webtools-cli"
7
- version = "1.2.1"
7
+ version = "1.2.2"
8
8
  description = "Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -36,6 +36,8 @@ dependencies = [
36
36
  "mtranslate",
37
37
  "colorama",
38
38
  "playwright",
39
+ "mega.py",
40
+ "pycryptodome",
39
41
  "pyreadline3; platform_system == 'Windows'",
40
42
  ]
41
43
 
@@ -7,6 +7,32 @@ if sys.stdout.encoding and sys.stdout.encoding.lower() != 'utf-8':
7
7
  sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
8
8
  except Exception: pass
9
9
 
10
+ # --- AUTO-INSTALLER FOR MISSING DEPENDENCIES ---
11
+ def ensure_dependencies():
12
+ """Checks and installs missing dependencies at runtime"""
13
+ dependencies = {
14
+ "mega": "mega.py",
15
+ "Crypto": "pycryptodome"
16
+ }
17
+ missing = []
18
+ for module_name, package_name in dependencies.items():
19
+ try:
20
+ __import__(module_name)
21
+ except ImportError:
22
+ missing.append(package_name)
23
+
24
+ if missing:
25
+ print(f"\n[!] Missing dependencies detected: {', '.join(missing)}")
26
+ print("[*] Attempting automatic installation...")
27
+ try:
28
+ subprocess.check_call([sys.executable, "-m", "pip", "install"] + missing)
29
+ print("[+] Dependencies installed successfully!\n")
30
+ except Exception as e:
31
+ print(f"[-] Auto-installation failed: {e}")
32
+ print("[!] Please run: pip install mega.py pycryptodome")
33
+
34
+ ensure_dependencies()
35
+
10
36
 
11
37
  # --- PACKAGE PATHS ---
12
38
  PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
@@ -29,6 +29,8 @@ Requires-Dist: Pillow
29
29
  Requires-Dist: mtranslate
30
30
  Requires-Dist: colorama
31
31
  Requires-Dist: playwright
32
+ Requires-Dist: mega.py
33
+ Requires-Dist: pycryptodome
32
34
  Requires-Dist: pyreadline3; platform_system == "Windows"
33
35
  Provides-Extra: playwright
34
36
  Requires-Dist: playwright; extra == "playwright"
@@ -9,6 +9,8 @@ Pillow
9
9
  mtranslate
10
10
  colorama
11
11
  playwright
12
+ mega.py
13
+ pycryptodome
12
14
 
13
15
  [:platform_system == "Windows"]
14
16
  pyreadline3
File without changes
File without changes
File without changes