Skip to main content

A simple function that will help you with debugging.

Project description

simple-print

A simple function that will help you with debugging.

https://github.com/Sobolev5/simple-print

How to use it

To install run:

pip install simple-print

Add the following line at the top of your file:

from simple_print.functions import sprint, sprint_f 

And simple print your variables:

a = 5
sprint(a)    
sprint(a, 'red') # colors: 'grey', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'. 
sprint_f(a) 
sprint_f(a, 'green')

Open your development console and see the result:

a=5 :: line 15
a=5 :: line 15
a=5 :: line 15 :: /my_project/news/views.py
a=5 :: line 15 :: /my_project/news/views.py

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.

Files for simple-print, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size simple_print-0.6-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

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