/python-object-explore-module

a python module to explore libraries callables and attributes...useful when the doc is scarce

Primary LanguagePython

Test-Lint-Format test-coverage badge Maintainability

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 :

  1. find your modules path : type print(sys.path) in python interpreter
  2. put objectexplore.py file in one of the modules path
  3. add from objectexplore import * in ~/.python_shell_startup.py
  4. add export PYTHONSTARTUP=~/.python_shell_startup.py in your ~/.bashrc or ~/.zshrc