Skip to main content

Lye - Tools package for Tyler AI framework

Project description

Lye - Tools Package for Tyler

Lye is a collection of tools that extend Tyler's capabilities, providing integrations with various services and utilities. It serves as the toolset foundation for Tyler agents, offering a comprehensive suite of tools for web browsing, file operations, Slack integration, Notion access, image generation, audio processing, and command-line operations.

Installation

# Using uv (recommended)
uv add slide-lye

# Using pip (fallback)
pip install slide-lye

Available Tools

Web Tools

  • fetch_page: Fetch and extract content from web pages
  • download_file: Download files from URLs
  • extract_text_from_html: Extract text content from HTML
  • fetch_html: Fetch raw HTML content
  • search_web: Search the web using search engines

Slack Tools

  • post_message: Post messages to Slack channels
  • get_channel_history: Get message history from channels
  • get_users: Get list of users in workspace
  • search_messages: Search for messages
  • upload_file: Upload files to Slack
  • summarize_channel: Get AI summary of channel activity

Command Line Tools

  • execute_command: Execute shell commands safely
  • list_directory: List directory contents
  • search_files: Search for files by pattern

Notion Tools

  • search_pages: Search Notion pages
  • create_page: Create new Notion pages
  • update_page: Update existing pages
  • get_page: Get page content
  • delete_page: Delete pages
  • list_databases: List available databases
  • query_database: Query database contents
  • create_database_item: Create database entries
  • update_database_item: Update database entries

Image Tools

  • generate_image: Generate images using AI
  • analyze_image: Analyze image content

Audio Tools

  • text_to_speech: Convert text to speech
  • speech_to_text: Convert speech to text

File Tools

  • read_file: Read various file formats
  • write_file: Write content to files
  • read_pdf: Extract text from PDFs
  • process_csv: Read and analyze CSV files
  • read_json: Read JSON files
  • write_json: Write JSON files

Browser Tools

  • browser_automate: Automate browser interactions using browser-use
  • browser_screenshot: Take screenshots of web pages

Usage with Tyler

from tyler import Agent

# Use all tools from a module
agent = Agent(tools=["web", "slack"])

# Use specific tools
agent = Agent(tools=["web:fetch_page,download_file"])

# Import tools directly
from lye import WEB_TOOLS, SLACK_TOOLS
agent = Agent(tools=WEB_TOOLS + SLACK_TOOLS)

Requirements

  • Python 3.13+
  • System dependencies for PDF image processing:
    # macOS
    brew install poppler
    
    # Ubuntu/Debian
    sudo apt-get install poppler-utils
    

Development

# Install with dev dependencies
uv sync --dev

# Run tests
uv run pytest

# Run specific test
uv run pytest tests/test_web.py

Tool Module Organization

Lye organizes tools into separate modules, each with its own tool list:

  • WEB_TOOLS - Web browsing and downloading
  • SLACK_TOOLS - Slack workspace interaction
  • COMMAND_LINE_TOOLS - Safe command execution
  • NOTION_TOOLS - Notion workspace integration
  • IMAGE_TOOLS - AI image generation and analysis
  • AUDIO_TOOLS - Speech synthesis and recognition
  • FILES_TOOLS - File reading and manipulation
  • BROWSER_TOOLS - Browser automation

License

MIT License - see LICENSE file for details.

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

slide_lye-6.1.0.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

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

slide_lye-6.1.0-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file slide_lye-6.1.0.tar.gz.

File metadata

  • Download URL: slide_lye-6.1.0.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.13.11 HTTPX/0.28.1

File hashes

Hashes for slide_lye-6.1.0.tar.gz
Algorithm Hash digest
SHA256 ff84b2ccfb49b72f85fade0e5fb1db3fb011b6d642be2bac0d7d037ba57ade42
MD5 81d86264ca08a6130cf89161ea8021d2
BLAKE2b-256 a90e6df8cfc9a17915b77827ac1efcfa300cf5f2a3a65b6448bdf568f76cef07

See more details on using hashes here.

File details

Details for the file slide_lye-6.1.0-py3-none-any.whl.

File metadata

  • Download URL: slide_lye-6.1.0-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.13.11 HTTPX/0.28.1

File hashes

Hashes for slide_lye-6.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9f37d7aeaf6fdee8841e8bfa86ea2df0d969f14caa1a30939a88eaf9df73fa2
MD5 d96199b0b401ad9c2c3914af189a7df6
BLAKE2b-256 339bf62220126b35b1dda94f12119e00ed6013cfa98b51d2f21dbf494072a371

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