How can I find out which version of the fabric I installed - through the API?
I understand that I can just run
$ fab --version
but I would rather do something like
>>> import fabric >>> fabric.version '1.4.1'
There submodule version in the fabric:
>>>import fabric.version >>>fabric.version.get_version() '1.2.2'
You do not even need to do this, this is in the docs :
from fabric.api import * print env.version