python-object-explore-module
a python module to explore libraries callables and attributes...useful when the doc is scarce
usage:
diro(object)
prints a list of object.callables() and a list of object.attributes
dirdoc(object)
print recursively the callables and their doc
dirpath(obj):
print the absolute path of the file in which obj is defined
dirpid():
print the parent pid and children pid of python processes
to import automatically the functions in python :
- find your modules path : type
print(sys.path)
in python interpreter - put objectexplore.py file in one of the modules path
- add
from objectexplore import *
in ~/.python_shell_startup.py - add
export PYTHONSTARTUP=~/.python_shell_startup.py
in your ~/.bashrc or ~/.zshrc