Re:Show HN: PyFilesystem 2.0 – A Python interface to filesys...
by ekiara on Thursday December 08, 2016 @05:03AM
(#13129420)
My big question is why? you wanted to navigate or display a JSON dataset using filesystem-viewer tools? i.e. "Explore" the JSON dataset?
Re:Show HN: PyFilesystem 2.0 – A Python interface to filesys...
by straphka on Thursday December 08, 2016 @07:59AM
(#13129995)
Well, mostly because I wanted to play with fuse, but it started out as an ansible thing (doesn't work with >2 though).
The ansible setup module returns the system information in json, and if you mount it with the --realtime flag, when you open a "file" like ram for instance, ansible fetches the current value for you. That way you have your infrastructure mounted so to speak. Sort of a /proc filesystem for your linux infrastructure.
I never got further than a working poc though. It works, but there are some bugs and there is no regard for security.
It basically mounts a dict on a filesystem, the exact opposite of what you want :)
https://github.com/yhekma/datamounter