Skip to main content

A powerful web content fetcher and processor

Project description

VisionLite: Lightweight Web Search With AI 🚀

License: MIT Python 3.8+ Downloads

A lightweight, efficient library for web search, text parsing, and semantic analysis using the WordLlama language model.

🌟 Features

  • 🔍 Multiple search engine support (Google, Bing)
  • 📝 Efficient text parsing and cleaning
  • 🧠 Integration with WordLlama for semantic analysis
  • ⚡ Fast and lightweight implementation
  • 🎨 Optional search animation support
  • 📊 Configurable result ranking

📦 Installation

pip install parselite searchlite wordllama

🚀 Quick Start

GoogleSearch+AI

from visionlite import vision
results = vision("What is quantum computing?")
print(results)

BingSearch+AI

from visionlite import visionbing
results = visionbing("What is quantum computing?")
print(results)

📖 Usage Examples

Basic Search with Google

def vision(query, k=1, max_urls=5, animation=False):
    # Search, parse, and rank results
    results = llm.topk(
        query,
        llm.split("".join(
            parse(google(query, max_urls=max_urls, animation=animation))
        )),
        k=k
    )
    return "\n".join(results)

# Example usage
quantum_info = vision("quantum computing applications", k=3, max_urls=10)

Search with Bing

def visionbing(query, k=1, max_urls=5, animation=False):
    # Search using Bing, parse, and rank results
    results = llm.topk(
        query,
        llm.split("".join(
            parse(bing(query, max_urls=max_urls, animation=animation))
        )),
        k=k
    )
    return "\n".join(results)

# Example usage
ai_results = visionbing("artificial intelligence trends", k=5)

🔧 Configuration

Search Parameters

  • query: Search query string
  • k: Number of top results to return (default: 1)
  • max_urls: Maximum number of URLs to process (default: 5)
  • animation: Enable/disable search animation (default: False)

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • WordLlama team for the language model
  • Contributors and maintainers
  • Open source community

🔮 Future Plans

  • Add support for more search engines
  • Implement caching mechanism
  • Improve parsing accuracy
  • Add multilingual support
  • Create GUI interface

⭐ Star History

Star History Chart

📊 Performance

Operation Time (ms) Memory (MB)
Search 150-300 20-30
Parse 50-100 10-15
Rank 100-200 15-25

🔥 Showcase

Projects using ParserLite:

  • Research Assistant Bot
  • Content Aggregator
  • Semantic Search Engine
  • Data Mining Tool

Made with ❤️ by [Your Name]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visionlite-0.1.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

visionlite-0.1.6-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file visionlite-0.1.6.tar.gz.

File metadata

  • Download URL: visionlite-0.1.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for visionlite-0.1.6.tar.gz
Algorithm Hash digest
SHA256 1b6ff7fee7c6803ff12331926748b270576bcaf6aa6b3021f7819d7c5386f8bf
MD5 dc954a70f0ef1f62f4fb2444918fe894
BLAKE2b-256 6d4be6715740339ce8795faf340a0de1cc18d8f0ba61e0589e757582257c4efe

See more details on using hashes here.

File details

Details for the file visionlite-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: visionlite-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for visionlite-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e529815da5cf75f47981a932744ede890cf5e8ca11d3bc5c8952c4080a6ea374
MD5 f3fe58e5e7f9c17c86b89e48eacc9d9d
BLAKE2b-256 e5aafa4d6b33dc43ba76d2a60550394c92a83a01aa588f16dd74dbebfd123189

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page