Skip to main content

Simple and useful python decorator for real-time logging.

Project description


Simple and useful python decorator for real-time logging.

How to use it

To install run:

pip install python-watch

Add the following line at the top of your file:

from python_watch import watch 

And simple wrap your function or class method:

def print_text(text):


Open your development console and see the result:

""" /my_project/news/ -> print_text: Line number 15 """
args: ('hello_world')

That's all.

Project details

Download files

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

Built Distribution

python_watch-0.6-py3-none-any.whl (3.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page