Python API Reference¶
Complete reference for the tarzi Python API.
Quick Reference¶
- Core Functions
tarzi.convert_html()- Convert HTML to various formatstarzi.fetch_url()- Fetch web page contenttarzi.search_web()- Search the web
- Classes
tarzi.Converter- HTML conversiontarzi.WebFetcher- Web page fetchingtarzi.SearchEngine- Web searchtarzi.Config- Configuration management
- Data Types
tarzi.SearchResult- Search result datatarzi.TarziError- Error types
Basic Usage¶
import tarzi
# Convert HTML
markdown = tarzi.convert_html("<h1>Hello</h1>", "markdown")
# Fetch web page
content = tarzi.fetch_url("https://example.com")
# Search web
results = tarzi.search_web("python programming", "webquery", 10)