Get Started
Quickstart
Start parsing your documents in minutes with the AnyParser SDK
Get started with AnyParser SDK
The quickest way to get started with AnyParser
is using the SDK.
If you’d rather call the RESTful API directly, please refer to the API Reference
Setup
First install any-parser-rt from pypi
.
pip install any-parser-rt
Next get your API key from the CambioML website.
Finally, set up your AnyParser
sync or async client.
anyparser_sync.py
from any_parser_rt.any_parser_rt import AnyParserRT
ap_rt = AnyParserRT(api_key="...")
md_output, total_time = ap_rt.extract(file_path="./data/test.pdf")
anyparser_async.py
from any_parser_rt.any_parser_rt import AnyParserRT
ap_rt = AnyParserRT(api_key="...")
file_id = ap_rt.async_extract(file_path="./data/test.pdf")
md = ap_rt.async_fetch(file_id=file_id)
Full Examples
Check out these notebooks for more detailed examples of using AnyParser.