api.py 803 B

123456789101112131415161718
  1. """
  2. Non-init module for doing convenient * imports from.
  3. Necessary because if we did this in __init__, one would be unable to import
  4. anything else inside the package -- like, say, the version number used in
  5. setup.py -- without triggering loads of most of the code. Which doesn't work so
  6. well when you're using setup.py to install e.g. ssh!
  7. """
  8. from fabric.context_managers import (cd, hide, settings, show, path, prefix,
  9. lcd, quiet, warn_only, remote_tunnel, shell_env)
  10. from fabric.decorators import (hosts, roles, runs_once, with_settings, task,
  11. serial, parallel)
  12. from fabric.operations import (require, prompt, put, get, run, sudo, local,
  13. reboot, open_shell)
  14. from fabric.state import env, output
  15. from fabric.utils import abort, warn, puts, fastprint
  16. from fabric.tasks import execute