I don't have much need of this personally, but I was playing around with an example from earlier in the thread and ended up with this:
#!/usr/bin/env -S uv run --with sh --script from sh import ifconfig print(ifconfig("en0"))