Skip to main content

free google results

Project description

LiteAuto 🚀

PyPI version License: MIT

LiteAuto is a lightweight Python library that provides easy-to-use tools for web automation, content parsing, vision AI, and smart searching. It's designed to be simple yet powerful, making common automation tasks effortless.

📦 Installation

pip install liteauto

✨ Features

  • 🔍 Smart Google search with multi-query support
  • 📄 Fast content parsing from web pages and PDFs
  • 🧠 Vision AI for content analysis
  • 📧 Gmail automation
  • 📚 arXiv paper analysis
  • 🔄 Project to prompt conversion
  • 🎯 Word-level text operations

🚀 Quick Start

Web Search and Parsing

from liteauto import google, parse

# Simple Google search
urls = google("python programming", max_urls=5)

# Parse web content
contents = parse(urls)
for content in contents:
    print(f"URL: {content.url}")
    print(f"Content: {content.content[:200]}...")

Vision AI Features

from liteauto import visionai, wlanswer, wlsplit

# Get AI-powered search results
results = visionai("machine learning fundamentals", k=3)
print(results)

# Split text into meaningful chunks
chunks = wlsplit(long_text)

# Get relevant answers from context
answer = wlanswer(context="long text...", query="specific question", k=1)

Gmail Automation

from liteauto import gmail, automail

# Send a simple email
gmail(body="Hello World!", 
      subject="Test Email", 
      to_email="recipient@example.com")

# Create an automated email responder
def auto_response(subject, body):
    return f"Auto-reply to: {subject}"

automail(auto_response, sleep_time=2)

arXiv Integration

from liteauto import get_todays_arxiv_papers, research_paper_analysis

# Get today's arXiv papers
papers_df = get_todays_arxiv_papers()

# Analyze a research paper
paper_insights = research_paper_analysis("https://arxiv.org/pdf/2301.00001.pdf")
print(paper_insights.summary_insights)

Project Analysis

from liteauto import ProjectToPrompt, project_to_markdown

# Convert project to documentation
project = ProjectToPrompt("path/to/project")
docs = project.generate_markdown()

# Generate markdown from project
markdown = project_to_markdown("path/to/project")

📚 Main Components

from liteauto import (
    # Search and parsing
    google,          # Google search functionality
    parse,          # Web content parser
    aparse,         # Async web content parser
    
    # Vision AI
    visionai,       # Advanced vision AI search
    minivisionai,   # Lightweight vision AI
    deepvisionai,   # Deep vision AI analysis
    
    # Text operations
    wlanswer,       # Get answers from context
    wlsplit,        # Split text into chunks
    wlsimchunks,    # Get similar chunks
    wltopk,         # Get top-k similar items
    
    # Email
    gmail,          # Gmail operations
    automail,       # Email automation
    GmailAutomation,# Full Gmail automation class
    
    # arXiv
    get_todays_arxiv_papers,    # Get recent arXiv papers
    research_paper_analysis,    # Analyze research papers
    
    # Project tools
    ProjectToPrompt,           # Convert project to prompts
    project_to_markdown        # Convert project to markdown
)

🛠️ Advanced Usage

Custom Search Configuration

# Configure advanced search parameters
urls = google(
    query="python tutorials",
    max_urls=10,
    animation=False,
    allow_pdf_extraction=True,
    allow_youtube_urls_extraction=True
)

Vision AI with Custom Parameters

results = visionai(
    query="deep learning applications",
    max_urls=15,
    k=10,
    model="llama3.2:1b-instruct-q4_K_M",
    temperature=0.05,
    genai_query_k=7,
    query_k=15
)

Automated Paper Analysis

from liteauto import research_paper_analysis

paper = research_paper_analysis("paper_url.pdf")
print(f"Problem Statement: {paper.abs_insights.problem_statement}")
print(f"Key Approach: {paper.abs_insights.key_approach}")
print(f"Main Findings: {paper.summary_insights.main_results}")

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  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.

✨ Contributors

🌟 Star History

Star History Chart

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

credar-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

credar-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file credar-0.0.2.tar.gz.

File metadata

  • Download URL: credar-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.0rc1 Linux/6.8.0-52-generic

File hashes

Hashes for credar-0.0.2.tar.gz
Algorithm Hash digest
SHA256 440d17ac50e7e5328a0a4aabdfdf87f5639ca82e6e3b88fa15b5a46d46394802
MD5 b9b1a5bcb97857adf12bf6bcdb5b7e77
BLAKE2b-256 5c48026ecbfa504532f8e6e7369d3fe89ce08631259c24f66dbdd183091ca46e

See more details on using hashes here.

File details

Details for the file credar-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: credar-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.0rc1 Linux/6.8.0-52-generic

File hashes

Hashes for credar-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe8a3cc27e8615a5854e75ec0776ac4d6bff0f25c547e9092a3cebea2b88b39
MD5 9962a7d579bcc787fc5f54e1d94ae380
BLAKE2b-256 7d3a978d64d63a9c2730843b4077b08ca45daa907b3dae022962664c13ef7e4b

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