inspect.currentframe().f_back.f_locals
{
'__name__': '__main__',
'__doc__': None,
'__package__': None,
'__loader__': < _frozen_importlib_external.SourceFileLoader object at 0x7f1cd8a7d5c0 > ,
'__spec__': None,
'__annotations__': {},
'__builtins__': < module 'builtins'(built - in ) > ,
'__file__': '/home/aleksandrovalbert/Work/playground/разное.py',
'__cached__': None,
'inspect': < module 'inspect'
from '/usr/lib/python3.6/inspect.py' > ,
'Dict': typing.Dict,
'BaseUrlSession': < class 'requests_toolbelt.sessions.BaseUrlSession' > ,
'Mark': < class '__main__.Mark' > ,
'_B': < class '__main__._B' > ,
'_A': < class '__main__._A' > ,
'Client': < class '__main__.Client' > ,
'client': < __main__.Client object at 0x7f1cd73d6e48 >
}