← Back to Leaderboard
Lrun-llama

run-llama/llama-parse-py

Typed Python SDK for cloud OCR and document parsing through the Llama Cloud API

Engineering Health (Methodology)
A+ · 90/100
Maintenance Activity
● Updated today
Latest Release
v2.20.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption15/25
Release Cadence20/20
License Clarity20/20
API
Total Stars
★ 70
24h Growth
+0
7d Growth
+1
Forks
18

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

run-llama/llama-parse-py Star History (2026-01-15 - 2026-12-01) ALL-TIME STAR HISTORY (2026-01 – 2026-12) +69 in 320d · avg +0/day 74 37 0 2026-01-15: ★ 12026-02-07: ★ 52026-02-28: ★ 102026-03-21: ★ 132026-04-11: ★ 202026-05-02: ★ 272026-05-23: ★ 342026-06-13: ★ 392026-07-04: ★ 442026-07-25: ★ 522026-08-15: ★ 562026-09-05: ★ 572026-09-26: ★ 622026-10-17: ★ 642026-11-06: ★ 672026-12-01: ★ 70 ★ 70 2026-01 2026-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

llama_cloud is a Stainless-generated Python client for the Llama Cloud REST API, not a document-processing engine. A typical flow uploads a document through files.create, then passes its file ID to parsing.create, which returns a job ID. The application owns workflow orchestration; Llama Cloud executes OCR and parsing.

LlamaCloud and AsyncLlamaCloud expose the same API operations through synchronous and asynchronous interfaces. The package uses httpx>=0.23.0,<1 and pydantic>=1.9.0,<3, with TypedDicts for nested requests and Pydantic models for responses. Custom transports, proxies, a configurable base URL, and lower-level HTTP methods provide escape hatches without requiring a fork.

Key Capabilities & Differentiators

Parsing accepts a tier and a version; examples use fast and agentic. Uploads accept bytes, a path-like object, or a tuple containing filename, content, and media type. The async client reads path-like uploads asynchronously. The SDK also exposes extraction and index operations, and paginated list calls support either automatic iteration or explicit cursor handling.

Pydantic responses can be serialized to JSON or dictionaries, and model_fields_set distinguishes an omitted field from an explicit null. Raw-response wrappers expose HTTP headers; streaming wrappers defer reading the body and use a context manager to close the response. This is HTTP response streaming, not a guarantee that parsing results arrive incrementally.

Trade-offs & Limitations

Compared with handwritten REST calls, the SDK removes much of the boilerplate for request types, pagination, retries, and error mapping while retaining access to raw HTTP responses. Compared with a local OCR and parsing stack, it avoids running the processing engine yourself but puts network latency, service limits, and usage costs on the ingestion path. The MIT license covers the SDK, not an offline or self-hosted edition of the service.

The default one-minute timeout applies to a request, not the full parsing job. Connection errors and HTTP 408, 409, 429, and 5xx responses are retried twice by default. Set a separate job deadline, cap concurrency, and verify the API's duplicate-submission behavior before layering application retries over job creation. For sensitive inputs, confirm cloud-service data handling before committing to the integration.

Hardware & Deployment Guide

Install llama_cloud on Python 3.9 or later and supply LLAMA_CLOUD_API_KEY through the runtime's secret configuration. The application needs network access to Llama Cloud, not local model weights or a GPU. Both clients default to httpx; install llama_cloud[aiohttp] and pass DefaultAioHttpClient() if the async workload benefits from that backend. Reuse clients for connection pooling and close them on shutdown.

Release v2.18.0 moved Index v2 indexing, retrieval, and chat out of beta, and exposed Verify under client.alpha.verify. v2.19.0 added expand=usage to the classification job GET endpoint, while v2.20.0 exposed the Max effort option for extraction. Pin the SDK and run integration tests before upgrading; the package allows some breaking changes in minor releases.

Job submission: Upload a file, then create a parsing job using its file ID, parsing tier, and version.
Typed API: TypedDict request structures and Pydantic response models cover the documented API surface.
Concurrency: Sync and async clients use httpx by default; the async client can switch to aiohttp.
Pagination: List endpoints support automatic iteration, explicit next-page requests, and direct cursor access.
Failure handling: Typed connection and status exceptions, two default retries for eligible failures, and a configurable one-minute request timeout.
HTTP control: Custom transports and proxies, raw response headers, and context-managed body streaming.
Best For

Python teams that have selected Llama Cloud and want typed sync or async integration for document parsing and extraction in a production RAG ingestion pipeline.

Skip If

Documents must stay offline or inside your network, you need to self-host the processing engine, or you cannot accept a managed API's latency, limits, or data-handling terms.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

API
# install from PyPI
pip install llama_cloud

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
llama-parse-py ★70+1PythonMITTyped Python SDK for cloud OCR and document parsing through the Llama Cloud API
llama_index53.1k+106PythonMITA modular Python SDK for document ingestion, indexing, and RAG
retrieval-agent-template183—PythonMITTwo LangGraph workflows for document indexing and user-scoped RAG chat
liteparse13.6k+212RustApache-2.0Rust and PDFium for local document parsing with layout and OCR

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/run-llama/llama-parse-py.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

run-llama/llama-parse-py Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about llama-parse-py

How do I add parsing to an existing Python ingestion pipeline?

Upload the document with client.files.create, then pass its file_id to client.parsing.create with the desired tier and version. Keep the returned parsing job ID so your application can track the job separately from the HTTP request that submitted it.

Does the SDK need a GPU, and what drives local resource usage?

No local GPU or model weights are needed for this API integration: OCR and parsing run in Llama Cloud. Size the application host for concurrent requests, upload handling, and response buffering. For large response bodies, the SDK offers context-managed streaming.

What does the MIT license cover for commercial use and self-hosting?

The MIT license permits commercial use of the client subject to its notice requirements. It does not grant rights to self-host the processing service or replace the service's terms. Review retention, residency, and document-handling requirements before sending production data.

When should I use direct REST calls or a local OCR stack instead?

Call the REST API directly if you need precise control over the HTTP layer and prefer to maintain your own models, retries, and pagination. Choose a local OCR and parsing stack if documents must stay inside your environment or you need control over preprocessing. The SDK is a better fit when you have selected Llama Cloud and want typed Python integration.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining run-llama/llama-parse-py? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature run-llama/llama-parse-py on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare