title: Fabric: use it without call fab app, in a python module?
body: <p>I am learning about Fabric, since I need to operate on remote computer, and ssh via subprocess in shell is not really an option.</p>
  
  <p>Now, I see everywhere that the common usage is to create a fabric.py file, where the commands are defined, and then call them via the fab app.</p>
  
  <p>I would like to use Fabric from a Python function: I would like to import Fabric, set the env user and host, and then pass commands; but I can't find anywhere a tutorial that explain how you do so, without actually use the fab application or the fabric python file.</p>
  
  <p>Is possible to use it as I would, or I am forced to use it trough the fab app and forced to create a separate file called fabric.py?</p>