intraspector

Intraspector decorator for python


License
MIT
Install
pip install intraspector==0.1.2

Documentation

Python Intraspector

PyPI version

This project is currently under development. APIs will change.

Example Usage

Declare Intraspector object

from intraspector import Intraspector
global intraspector
intraspector = Intraspector()

Add Intraspector decorator to functions you want recorded.

@intraspector.record()
def somefunction(args, kwargs):
  secondCall(args)

@intraspector.record()
def secondCall(args):
  dont_record_this()

def dont_record_this():
  # Do something

Return Intraspector trace

if intraspector.get_debug_mode:
    value['intraspector_trace'] = intraspector.get_trace()

Related Modules

React Fluxible Intraspector

Thanks

Proudly developed by Bespoke Insights