j.code
- /opt/jumpscale7/lib/JumpScale/baselib/code/Code.py
Methods
def classEditGeany
arguments
look for editor (uses geany) and then edit the file
def classEditWing
arguments
look for editor (uses geany) and then edit the file
def classGetBase
arguments
def classGetJSModelBase
arguments
def classGetJSRootModelBase
arguments
def classInfoGet
arguments
returns filepath,linenr,sourcecode
def classInfoPrint
arguments
print info like source code of class
def deIndent
arguments
def dict2JSModelobject
arguments
def dict2object
arguments
def indent
arguments
def object2dict
arguments
- obj
- dieOnUnknown = False
- ignoreKeys = []
- ignoreUnderscoreKeys = False
def object2dict4index
arguments
convert object to a dict
only properties on first level are considered
and properties of basic types like int,str,float,bool,dict,list
ideal to index the basics of an object
def object2json
arguments
- obj
- pretty = False
- skiperrors = False
- ignoreKeys = []
- ignoreUnderscoreKeys = False
def object2yaml
arguments
def pprint
arguments