I build a script that should be used with git, so that output is sent to a pager after a git command. I would like to do this using Python.
I have a python script that writes to stdout. Now I would like to display its output in the pager the user has set in git.
I know I could always provide a wrapper script that does this:
git-whatever | less
Is there any way to do this from within python?