Code Monkey home page Code Monkey logo

fabric's Introduction

Fabric is a Python (2.5-2.7) 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.

Typical use involves creating a Python module containing one or more functions, then executing them via the fab command-line tool. Below is a small but complete "fabfile" containing a single task:

from fabric.api import run

def host_type():
    run('uname -s')

Once a task is defined, it may be run on one or more servers, like so:

$ fab -H localhost,linuxbox host_type
[localhost] run: uname -s
[localhost] out: Darwin
[linuxbox] run: uname -s
[linuxbox] out: Linux

Done.
Disconnecting from localhost... done.
Disconnecting from linuxbox... done.

In addition to use via the fab tool, Fabric's components may be imported into other Python code, providing a Pythonic interface to the SSH protocol suite at a higher level than that provided by e.g. the Paramiko library (which Fabric itself uses.)

fabric's People

Contributors

bitprophet avatar chrisvest avatar goosemo avatar kxxoling avatar tswicegood avatar konradhalas avatar max-arnold avatar davidhalter avatar mw44118 avatar rasky avatar sophacles avatar akitada avatar opie4624 avatar focusaurus avatar calebgroom avatar offbyone avatar stnatic avatar alisaifee avatar rsaikali avatar owenn avatar matthewwithanm avatar msabramo avatar hgdeoro avatar fgmacedo avatar ericholscher avatar ssteinerx avatar mitechie avatar pbetkier avatar paulehoffman avatar mvk avatar

Stargazers

 avatar ryoryo avatar  avatar 无常 avatar  avatar Richard.Wang avatar Karl Chen avatar menduo avatar Gkjiale avatar 短脖子小鹿 avatar shajiquan avatar will-gao avatar xyzibu avatar limbo avatar  avatar Jordan Zhou avatar kk avatar Steve Sun avatar feiandxs avatar 空 avatar JG avatar septs avatar

Watchers

James Cloos avatar  avatar

fabric's Issues

关于中文翻译

关于翻译

本 repo 中的中文翻译目前都是本人手写,但是在翻译过程中参考了不少 fabric-docs-cn.rtfd.org 的内容,在此表示鸣谢。本 repo 也欢迎大家的贡献。本翻译版本的在线地址托管于 RTFD

如何参与

愿意参与翻译的朋友请在本页面留言并留下近期文章的链接,以此自证语言组织能力和技术背景。确定好翻译章节后请估算好大概截止日期再 fork 本 repo。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.