I'm considering collect server data and in those servers Python 2.6 are pre-installed. Now I wonder if there are Python library correspond to "facter" of Ruby, not the Python "binding" for facter.
I googled about it but couldn't find any. Does anyone have any idea about this?
Here is a more compressed version of @AndrewWalker's suggestion. It also ensures ' => ' is present before splitting and removes the trailing \n :
I think I am going for facterpy, though.
pip install facterpy
, then: