title: Using Python Fabric without the command-line tool (fab)
body: <p>Altough Fabric documentations refers to a way of using the library for SSH access without requiring the fab command-line tool and/or tasks, I can't seem to manage a way to do it.</p>
  
  <p>I want to run this file (<em>example.py</em>) by only executing '<em>python example.py</em>':</p>
  
  <pre><code>env.hosts = [ "example.com" ]
  def ps():
      run("ps")
  ps()
  </code></pre>
  
  <p>Thanks.</p>