Blog Archives

Fabric API

Fabric is made up of Core API + Contrib API. Operations is part of the core api: local – Run a command on the local system. run – Run a shell command on a remote host. sudo – Run a

Posted in Fabric, Python

Fabric (SSH & passwords)

Option 1 – provide password with -p flag fab -H hostname -p password123 … Downside: password will show up in process listing Downside: password will show up in command history Option 2 – get prompted for password fab -I Initial

Posted in Fabric, Linux, Python, Security

Installing Fabric

Linux Installing fabric on LInux/Unix machine is quite simple: apt-get install fabric or aptitude install fabric Windows On windows the process is a bit more complex, see: https://fabric.readthedocs.org/en/1.8/installation.html The installation page mentions the dependencies that are required, however there are

Tagged with: ,
Posted in Fabric, Python

Python package managers

We have the following options: setuptools (easy_install) installed using pythong script: “python ez_setup.py” can install binary files easy_install <module> pip easy_install pip wrapper around easy_install provides uninstallation of modules leaves failed installations in clean state can’t install binaries pip install

Tagged with:
Posted in Python

Python modules

IDE IDLE is the standard python IDE included with every python installation. Modules Python uses sys.path to look for modules, it includes the contents of PYTHONPATH. We can check the current contents of sys.path from IDLE through File > Path

Tagged with:
Posted in Python