Overview

Using AnyParser, you can parse the full content from your documents into markdown.

Setup

Refer to the Quickstart guide to install the AnyParser SDK and get your api key.

Next, set up your AnyParser sync or async client.

anyparser_sync.py
from any_parser import AnyParser

ap = AnyParser(api_key="...")

md_output, total_time = ap.parse(file_path="/path/to/your/file")
anyparser_async.py
from any_parser import AnyParser

ap = AnyParser(api_key="...")

file_id = ap.async_parse(file_path="/path/to/your/file")

md = ap.async_fetch(file_id=file_id)

Output

A string containing the markdown representation of the given file.

Full Notebook Examples

Check out these notebooks for more detailed examples of using AnyParser BASE and PRO models: