Skip to content

Instantly share code, notes, and snippets.

@tobiashochguertel
Created May 8, 2026 08:41
Show Gist options
  • Select an option

  • Save tobiashochguertel/ebbd42856fcf6e0a796beea23c7a50e7 to your computer and use it in GitHub Desktop.

Select an option

Save tobiashochguertel/ebbd42856fcf6e0a796beea23c7a50e7 to your computer and use it in GitHub Desktop.
PEP 723 greet helper for remote import example
#!/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