Skip to main content

Intraspector decorator for python

Project description

# Python Intraspector
This project is currently under development. APIs will change.

## Example Usage
Declare Intraspector object
```python
from python-intraspector import Intraspector
global intraspector
intraspector = Intraspector()
```

Add Intraspector decorator to functions you want recorded.
```python

@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
```python
if intraspector.get_debug_mode:
value['intraspector_trace'] = intraspector.get_trace()
```

## Related Modules
[React Fluxible Intraspector](https://github.com/BespokeInsights/react-fluxible-intraspector)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intraspector-0.1.0.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

intraspector-0.1.0-py2-none-any.whl (3.2 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page