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.
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/PKG-INFO +3 -1
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/pyproject.toml +3 -1
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/core.py +26 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools_cli.egg-info/PKG-INFO +3 -1
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools_cli.egg-info/requires.txt +2 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/LICENSE +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/README.md +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/setup.cfg +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/__init__.py +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/__main__.py +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/cli.py +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/install.py +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/web/index.html +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/web/script.js +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools/web/style.css +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools_cli.egg-info/SOURCES.txt +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools_cli.egg-info/dependency_links.txt +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools_cli.egg-info/entry_points.txt +0 -0
- {webtools_cli-1.2.1 → webtools_cli-1.2.2}/webtools_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webtools-cli
|
|
3
|
-
Version: 1.2.
|
|
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.
|
|
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.
|
|
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"
|
|
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
|
|
File without changes
|
|
File without changes
|