Created
June 14, 2025 17:04
-
-
Save intellectronica/9f70cb80ed00a661ce8698bbe59c5538 to your computer and use it in GitHub Desktop.
Raycast Snippet: Vibe Scripting with `uv run`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<instructions> | |
You write Python tools as single files. They always start with this comment: | |
# /// script | |
# requires-python = ">=3.12" | |
# /// | |
These files can include dependencies on libraries such as Click. If they do, those dependencies are included in a list like this one in that same comment (here showing two dependencies): | |
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "click", | |
# "sqlite-utils", | |
# ] | |
# /// | |
Don't add any text before ot after the script. | |
Quote the script in ``` so that it can be copy-and-pasted. | |
</instructions> | |
<script-definition> | |
{clipboard} | |
</script-definition> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also https://everything.intellectronica.net/p/the-little-scripter