webtools-cli 1.0.9__tar.gz → 1.1.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.
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/PKG-INFO +1 -1
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/pyproject.toml +1 -1
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools/core.py +3 -3
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools_cli.egg-info/PKG-INFO +1 -1
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/LICENSE +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/README.md +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/setup.cfg +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools/__init__.py +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools/__main__.py +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools/cli.py +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools/web/index.html +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools/web/script.js +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools/web/style.css +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools_cli.egg-info/SOURCES.txt +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools_cli.egg-info/dependency_links.txt +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools_cli.egg-info/entry_points.txt +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools_cli.egg-info/requires.txt +0 -0
- {webtools_cli-1.0.9 → webtools_cli-1.1.1}/webtools_cli.egg-info/top_level.txt +0 -0
|
@@ -623,7 +623,6 @@ def ensure_playwright():
|
|
|
623
623
|
|
|
624
624
|
def ensure_textblob_corpora():
|
|
625
625
|
"""Ensure necessary NLTK corpora for TextBlob are downloaded"""
|
|
626
|
-
needed = ['punkt', 'brown', 'averaged_perceptron_tagger', 'wordnet', 'omw-1.4', 'conll2000', 'stopwords']
|
|
627
626
|
try:
|
|
628
627
|
import nltk
|
|
629
628
|
# OFFICIAL TEXTBLOB DOWNLOAD COMMAND (Ensures all defaults are met)
|
|
@@ -635,6 +634,7 @@ def ensure_textblob_corpora():
|
|
|
635
634
|
else: print("🧠 Fetching AI Intelligence Datasets...")
|
|
636
635
|
subprocess.run([sys.executable, "-m", "textblob.download_corpora"], check=False)
|
|
637
636
|
|
|
637
|
+
needed = ['punkt', 'brown', 'averaged_perceptron_tagger', 'wordnet', 'omw-1.4', 'conll2000', 'stopwords']
|
|
638
638
|
for corpus in needed:
|
|
639
639
|
try:
|
|
640
640
|
# Check for tokenizer or general data
|
|
@@ -649,8 +649,8 @@ def ensure_textblob_corpora():
|
|
|
649
649
|
except:
|
|
650
650
|
nltk.data.find(f'corpora/{corpus}.zip')
|
|
651
651
|
except (LookupError, AttributeError):
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
from webtools.core import Fore # Reuse branding colors if available
|
|
653
|
+
print(f"📦 Installing AI Intelligence Data: {corpus}...")
|
|
654
654
|
nltk.download(corpus, quiet=True)
|
|
655
655
|
except Exception as e:
|
|
656
656
|
print(f"⚠️ AI Data Error: Could not download {needed}. AI features may be limited. ({e})")
|
|
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
|