What version of fabric API is installed

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'
+5
source share
2 answers

There submodule version in the fabric:

>>>import fabric.version
>>>fabric.version.get_version()
'1.2.2'
+6
source

You do not even need to do this, this is in the docs :

from fabric.api import *
print env.version
+2
source

All Articles