Skip to main content

Simple and useful python decorator for real-time logging.

Project description

python-watch

Simple and useful python decorator for real-time logging.

https://github.com/Sobolev5/python-watch

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:

@watch
def print_text(text):
    print(text)

print_text('hello_world')    

Open your development console and see the result:

""" /my_project/news/views.py -> 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