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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.0.9
3
+ Version: 1.1.1
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "webtools-cli"
7
- version = "1.0.9"
7
+ version = "1.1.1"
8
8
  description = "Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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
- if COLOR_SUPPORT: print(f"{Fore.CYAN}📦 Installing AI Intelligence Data: {corpus}...{Style.RESET_ALL}")
653
- else: print(f"📦 Installing AI Intelligence Data: {corpus}...")
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})")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.0.9
3
+ Version: 1.1.1
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes