Skip to main content

Welcome to files-to-claude-xml 👋

Use XML tags for long context prompting using Claude's multi-document structure.

See notes and examples here: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/long-context-tips

Write up

:memo: See my blog post, I released files-to-claude-xml and new development workflows for more details.

:rocket: Usage

$ uv run files-to-claude-xml.py \
    filename1.py \
    filename2.py \
    filename3.py

Now create a new Claude Project and drag and drop the generated _claude.xml file into your "Project knowledge" section.

Author

👤 Jeff Triplett

🌟 Community Projects

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Release files for files-to-claude-xml 2024.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for files-to-claude-xml 2024.10.2
File Size Uploaded
files_to_claude_xml-2024.10.2.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for files-to-claude-xml 2024.10.2
File Interpreter ABI Platform
files_to_claude_xml-2024.10.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / files_to_claude_xml-2024.10.2.tar.gz

Download URL files_to_claude_xml-2024.10.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e8bbf7f686cb738a3558baf76000a8cd56af1e70ff5b50f67aa9e596fa6f140a
BLAKE2b-256 checksum
How to use checksums
868b2cac250739ca26f38262367c29dec8d4443d4c74dafe58069f36253259f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.21

Release files / files_to_claude_xml-2024.10.2-py3-none-any.whl

Download URL files_to_claude_xml-2024.10.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bdd01af2b9d438c0b0231229bc2cf7bc9af77772b1e6f3bb6d92ca7df20975e
BLAKE2b-256 checksum
How to use checksums
a3c47b280c902ba4423c57a8200c8409998115bc8c7427a0e0037617133fd5e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.21

Release history Release notifications | RSS feed

This release

2024.10.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page