2019-04-24 09:10:46 +00:00
|
|
|
# Copyright 2019 Ram Rachum and collaborators.
|
2019-04-19 22:20:27 +00:00
|
|
|
# This program is distributed under the MIT license.
|
2019-05-04 06:36:43 +00:00
|
|
|
'''
|
|
|
|
PySnooper - Never use print for debugging again
|
2019-05-03 19:19:16 +00:00
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
import pysnooper
|
|
|
|
|
|
|
|
@pysnooper.snoop()
|
2019-05-04 06:36:43 +00:00
|
|
|
def your_function(x):
|
2019-05-03 19:19:16 +00:00
|
|
|
...
|
|
|
|
|
|
|
|
A log will be written to stderr showing the lines executed and variables
|
|
|
|
changed in the decorated function.
|
|
|
|
|
|
|
|
For more information, see https://github.com/cool-RR/PySnooper
|
2019-05-04 06:36:43 +00:00
|
|
|
'''
|
2019-04-19 22:20:27 +00:00
|
|
|
|
2019-05-04 10:09:59 +00:00
|
|
|
from .tracer import Tracer as snoop
|
2019-05-03 15:31:39 +00:00
|
|
|
from .variables import Attrs, Exploding, Indices, Keys
|
2019-04-24 16:05:33 +00:00
|
|
|
import collections
|
|
|
|
|
|
|
|
__VersionInfo = collections.namedtuple('VersionInfo',
|
|
|
|
('major', 'minor', 'micro'))
|
|
|
|
|
2019-09-08 18:54:47 +00:00
|
|
|
__version__ = '0.2.7'
|
2019-04-25 13:54:46 +00:00
|
|
|
__version_info__ = __VersionInfo(*(map(int, __version__.split('.'))))
|
2019-04-24 16:05:33 +00:00
|
|
|
|
|
|
|
del collections, __VersionInfo # Avoid polluting the namespace
|