Self-contained Python scripts with uv and Coiled for easy cloud execution

2 scj13 1 8/5/2025, 7:33:35 PM docs.coiled.io ↗

Comments (1)

scj13 · 4m ago
There's been a lot of excitement around uv, the Python package manager by Astral. But uv is more than just a faster pip. Because uv can interpret PEP 723 metadata, it behaves kind of like npm, where you have self-contained, runnable scripts. This combines nicely with Coiled, a UX-focused cloud compute platform. You can declare script-specific dependencies with `uv add --script` and specify runtime config with inline `# COILED` comments.

Compare that to something like AWS Lambda or AWS Batch, where you’d typically need to package your script and dependencies into a ZIP file or build a Docker image; configure IAM roles, triggers, and permissions; handle versioning, logging, or hardware constraints.

Here's a video walkthrough: https://www.youtube.com/watch?v=0qeH132K4Go