Created
February 7, 2025 15:40
-
-
Save shollingsworth/880e9dee131139d83c3394e1931a442a to your computer and use it in GitHub Desktop.
demo of how you can write a shebang that utilizes uv run with automatic dependency resolution
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
#!/usr/bin/env -S uv run | |
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "boto3", | |
# ] | |
# /// | |
"""UV Script Demo.""" | |
def main() -> None: | |
"""Run main function.""" | |
print("hello world") | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment