Created
June 3, 2018 05:58
-
-
Save ryanwoodsmall/5d1d0f8fa8204dfdf2f36883c8a6908a to your computer and use it in GitHub Desktop.
dump json of dir(os/platform/sys)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import os | |
import platform | |
import sys | |
i = {} | |
for m in [os,platform,sys]: | |
i[m.__name__] = dir(m) | |
print json.dumps(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment