Created
May 8, 2026 08:41
-
-
Save tobiashochguertel/ebbd42856fcf6e0a796beea23c7a50e7 to your computer and use it in GitHub Desktop.
PEP 723 greet helper for remote import example
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 -- uvsr | |
| # /// script | |
| # dependencies = ["rich"] | |
| # /// | |
| """Greeting helper — can be imported from other PEP 723 scripts.""" | |
| def greet(name: str) -> str: | |
| return f"Hello, [bold green]{name}[/bold green]!" | |
| def farewell(name: str) -> str: | |
| return f"Goodbye, [bold yellow]{name}[/bold yellow]!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment