I've been doing a lot of Python work lately
to manage a butt-load of Linux servers and I've been using the Fabric
Library to help me connect
remotely and securely. I had some problems getting the library and
dependencies to install on my Mac laptop so here is what I did. Add a
reply if there is an easier way.
> sudo easy_install pip # PIP is recommended for installation
> sudo -s # Creates a new sudo shell
> export ARCHFLAGS="-arch i386 -arch x86_64" # Need to set some GCC flags
> pip install fabric # Get the install on
CherryPy - CherryPy is a pythonic,
object-oriented HTTP framework.
CherryPy allows developers to build web applications in much the same
way they would build any other object-oriented Python program. This
results in smaller source code developed in less time.
CherryPy is now more than six years old and it is has proven very fast
and stable. It is being used in production by many sites, from the
simplest ones to the most demanding ones.
| Linux / UNIX: Python programming tutorial for system
administrators
| Generally I use Perl and Shell script for automation or to make system
administration easier for me. Python is an interpreted, interactive,
object-oriented programming language that combines remarkable power
with very clear syntax. Python runs on Windows, Linux/Unix, Mac OS X,
OS/2, Amiga, Palm Handhelds, and Nokia mobile phones.
You can easily adopt Python to manage UNIX and Linux systems while
incorporating concepts of good program design. Python is an
easy-to-learn, open source scripting language that lets system
administrators do their job more quickly. It can also make tasks more
fun: