All Projects → AbhijithAJ → clrprint

AbhijithAJ / clrprint

Licence: MIT license
Print colorful output in the terminal, idle, cmd, and Windows PowerShell using the same functions.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to clrprint

Bugsnag Ruby
Bugsnag error monitoring & reporting software for rails, sinatra, rack and ruby
Stars: ✭ 211 (+859.09%)
Mutual labels:  debugging, debug
debugging-async-operations-in-nodejs
Example code to accompany my blog post on debugging async operations in Node.js.
Stars: ✭ 22 (+0%)
Mutual labels:  debugging, debug
Icecream Cpp
🍦 Never use cout/printf to debug again
Stars: ✭ 225 (+922.73%)
Mutual labels:  debugging, debug
Scyllahide
Advanced usermode anti-anti-debugger. Forked from https://bitbucket.org/NtQuery/scyllahide
Stars: ✭ 2,211 (+9950%)
Mutual labels:  debugging, debug
bugsnag-vue
[DEPRECATED] This package now lives within the monorepo for our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 26 (+18.18%)
Mutual labels:  debugging, debug
Godbg
Go implementation of the Rust `dbg` macro
Stars: ✭ 172 (+681.82%)
Mutual labels:  debugging, debug
gdbundle
Minimalist plugin manager for GDB and LLDB
Stars: ✭ 72 (+227.27%)
Mutual labels:  debugging, debug
Blender Debugger For Vscode
Blender addon for remote debugging Blender with VS Code (and Visual Studio)
Stars: ✭ 123 (+459.09%)
Mutual labels:  debugging, debug
bugsnag-java
Bugsnag error reporting for Java.
Stars: ✭ 51 (+131.82%)
Mutual labels:  debugging, debug
debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
Stars: ✭ 10,554 (+47872.73%)
Mutual labels:  debugging, debug
Debug Bundle
The DebugBundle allows greater integration of the VarDumper component in the Symfony full-stack framework.
Stars: ✭ 2,033 (+9140.91%)
Mutual labels:  debugging, debug
ducky
Chrome extension to overlay a (super adorable) rubber duck, as a virtual companion during rubber duck debugging.
Stars: ✭ 80 (+263.64%)
Mutual labels:  debugging, debug
Gdb Frontend
☕ GDBFrontend is an easy, flexible and extensionable gui debugger.
Stars: ✭ 2,104 (+9463.64%)
Mutual labels:  debugging, debug
Icecream
🍦 Never use print() to debug again.
Stars: ✭ 5,601 (+25359.09%)
Mutual labels:  debugging, debug
Android Remote Debugger
A library for remote logging, database debugging, shared preferences and network requests
Stars: ✭ 132 (+500%)
Mutual labels:  debugging, debug
Cli Debugging Cheatsheets
🔥 Collection of command-line debugging cheatsheets for multiple languages and runtimes
Stars: ✭ 239 (+986.36%)
Mutual labels:  debugging, debug
Debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
Stars: ✭ 9,912 (+44954.55%)
Mutual labels:  debugging, debug
Scala Trace Debug
Macro based print debugging. Locates log statements in your IDE.
Stars: ✭ 110 (+400%)
Mutual labels:  debugging, debug
krumo
Krumo: Structured information display solution for PHP
Stars: ✭ 74 (+236.36%)
Mutual labels:  debugging, debug
dwarf import
This loads DWARF info from an open binary and propagates function names, arguments, and type info
Stars: ✭ 18 (-18.18%)
Mutual labels:  debugging, debug

clrprint v2.0

Generic badge
made-with-python Generic badge PyPI license PayPal

  • Colorful output
  • Work's on IDLE, command prompt, windows powerShell, and terminal
  • Simply input() with clrinput() and print() with clrprint()
  • Basic colors only. Red, green, yellow, blue, purple, and black/white (default)
  • Flexible to print or take input only on demand (on DEBUG)
  • User input timeout feature (This is supported only on interactive shell)

ABOUT

This clrprint is developed to print a colorful output on idle, windows power shell and terminal. It has red, blue, green, yellow, purple and black/white (default) colors.

clrinput() includes a timeout feature that returns None if no user input is received within a certain amount of time.

It prints with default color if given color is not available.

Installation

You can install clrprint by running the following command

pip install clrprint

Usage

It's as simple as using Python's print() and input() functions.

Argument clr to represent color, debug to print only when debug=True are added.

clrinput() takes timeout argument that returns None if no user input is not received within a certain amount of time.

Note: timeout feature is not supported in IDLE. It is neglected by IDLE if it is passed

You can use clrhelp() to print out and see how to use it.

Example Code:

from clrprint import *

clrprint('text1','text2', clr='r')  # single letter is enough to represent color.
clrprint('text1_clr1','text2_clr2','text3_clr3','text4_clr4', clr='r,y,g') # prints 3 colors in same line
clrprint('ERROR:','error information','suggestions 1','suggestion2','suggestion3', clr='r,y,g') # print

#Supported on terminal, command prompt and powershell 
colord_text = clrit('text1', 'text2', clr='r,g') # returns ASCII coloured text
print(colord_text)
user_input = clrinput('Choose yes/no?', clr='r', timeout=10) or "DEFAULT"  # Take user input in 10 sec else Choose any Default value
print(user_input)

The input timeout functionality was inspired by WereCatf from the project werecatf

Screenshots

Terminal:

IDLE:

Powershell:

Example Code

'''
Developed by Abhijith Boppe - linkedin.com/in/abhijith-boppe/
'''
from clrprint import *

userclr = clrinput('Enter color: ',clr='green').strip()  # prompt color text
clrprint('You enterd', userclr,clr=userclr) # print it in that color

# If color not available it print's with default color (white/black)

# Input timeout and clrit (Works on terminal, cmd and powershell. Not supported on IDLE).
continue_ = clrinput('Continue FUZZING? :',clr='p', timeout=15) or False # if no user input in 15, take False
if continue_:
  FUZZ()
colored_text = clrit('Text1', 'Text2', clr='r,g') # Returns ASCII colored text 
clrhelp()  # to list out usage and available colors.

Buy Me A Coffee

License & copyright

© Abhijith Boppe, Security analyst

LinkedIn

© Dheeraj Kakkar, Software Developer

LinkedIn

Licensed under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].