PySnooper/pysnooper/__init__.py

30 lines
811 B
Python
Raw Normal View History

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.
"""PySnooper - Never use print for debugging again
Usage:
import pysnooper
@pysnooper.snoop()
def number_to_bits(number):
...
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-04-19 22:20:27 +00:00
2019-04-24 16:05:33 +00:00
from .pysnooper import 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-05-03 18:32:41 +00:00
__version__ = '0.0.30'
__version_info__ = __VersionInfo(*(map(int, __version__.split('.'))))
2019-04-24 16:05:33 +00:00
del collections, __VersionInfo # Avoid polluting the namespace