I haven’t used Fabric yet, but I heard a lot about it. This post is a reminder for me to check it out once.
“Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.
It provides a basic suite of operations for executing local or remote shell commands (normally or via sudo) and uploading/downloading files, as well as auxiliary functionality such as prompting the running user for input, or aborting execution.”
See this post for a concrete example: Deploying Python Apps with Fabric.
Another link with examples: Systems Administration with Fabric.