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 import sprint
And simple print your variables:
sprint(master)
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
my_string = sprint(master, r=True) # return as string
my_string = sprint(master, r=True, p=True) # return as string with path
Open your development console and see the result:
That's all.
P.S.
Try my free service for developers Workhours.space. It's time tracker with simple interface, powerful functionality such as automatic payroll calculation, telegram bot timer, easy web2 and web3 auth and more. Enjoy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for simple_print-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b84fbc5bce1ea0218cdaae157dc5c5241fda1d4b7a4e20666c4508243fd620 |
|
MD5 | 0cfe487e08e276f6824f1adbc32c0a35 |
|
BLAKE2b-256 | c67319b362086185db888194d29a4eeb0877b1b987dac117928eee232901de84 |