def pkg_info(pkg_path):
 (src, hsh) = pkg_commit_hash(pkg_path)
 return dict(ipython_version=release.version, ipython_path=pkg_path, commit_source=src, commit_hash=hsh, sys_version=sys.version, sys_executable=sys.executable, sys_platform=sys.platform, platform=platform.platform(), os_name=os.name, default_encoding=encoding.DEFAULT_ENCODING)

def pkg_info ( pkg_path ) : ( src , hsh ) = pkg_commit_hash ( pkg_path ) return dict ( ipython_version = release . version , ipython_path = pkg_path , commit_source = src , commit_hash = hsh , sys_version = sys . version , sys_executable = sys . executable , sys_platform = sys . platform , platform = platform . platform ( ) , os_name = os . name , default_encoding = encoding . DEFAULT_ENCODING )
return dict describing the context of this package parameters pkg_path : str path containing __init__ .