top | item 44803128

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

3 points| scj13 | 6 months ago |docs.coiled.io

1 comment

order

scj13|6 months 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