Skip to main content

A simple function that will help you with debugging.

Project description


A simple function that will help you with debugging.

How to use it

To install run:

pip install simple-print

Add the following line at the top of your file:

from simple_print import sprint 

And simple print your variables:

sprint(master, c="red") # colors: grey, red, green, yellow, blue, magenta, cyan, white. 
sprint(master, c="red", b="on_white") # backgrounds: on_grey, on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan
sprint(master, c="blue", b="on_white", a="bold") # attributes: bold, dark, underline, blink, reverse, concealed
sprint(f"master {master}", c="white", b="on_red", a="bold", s=True) # for f strings (any strings)
sprint(master, c="red", b="on_white", a="bold", p=True) # with full path to file

Open your development console and see the result:

That's all.

Buy me a coffee [thanks]


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

simple_print-1.5.2-py3-none-any.whl (3.7 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