Skip to article frontmatterSkip to article content

Demo

See Attachments in action! This demo shows how to process various file types and extract content for LLM use.

Demo

What you’ll see in the demo:

Try it yourself:

from attachments import Attachments

# Process the same files shown in the demo
pdf = Attachments("https://github.com/MaximeRivest/attachments/raw/main/src/attachments/data/sample.pdf")
pptx = Attachments("https://github.com/MaximeRivest/attachments/raw/main/src/attachments/data/sample_multipage.pptx[3-5]")

print(f"PDF text length: {len(str(pdf))}")
print(f"PPTX images extracted: {len(pptx.images)}")

# Generate a detailed project report
report = Attachments("src/[mode:report][files:true][force:true]")
print("📊 Project Analysis:")
print(report.text)