Python API Reference

Complete reference for the tarzi Python API.

Quick Reference

Core Functions
  • tarzi.convert_html() - Convert HTML to various formats

  • tarzi.fetch_url() - Fetch web page content

  • tarzi.search_web() - Search the web

Classes
  • tarzi.Converter - HTML conversion

  • tarzi.WebFetcher - Web page fetching

  • tarzi.SearchEngine - Web search

  • tarzi.Config - Configuration management

Data Types
  • tarzi.SearchResult - Search result data

  • tarzi.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)