Console printer with linenumbers, stacktraces, logging, conversions and coloring.
Active8 BV Active8 (05-03-15) license: GNU-GPL2
install
pip install consoleprinter
contains
Utility functions for working with commandline applications. Logging Printing Exception parsing Stacktracing Object reflection printing
usage
from consoleprinter import console
colors = ['black', 'blue', 'cyan', 'default', 'green', 'grey', 'magenta', 'orange', 'red', 'white', 'yellow']
for color in colors:
console(color, color=color)
PyCharm
Console detects when run in PyCharm or Intellij, and adds links to the orinating line
if len(suite._tests) == 0:
console_warning("Can't find tests, looked in test*.py")
`bash 2.48 | unittester.py:85 | == | Can't find tests, looked in test*.py | File "/Users/rabshakeh/workspace/unittester/unittester/unittester.py", line 85 (run_unit_test) | ==
Reflection
with zipfile.ZipFile(zippath) as zf:
for member in zf.infolist():
console(member)
.. figure:: res/Screen%20Shot%202015-03-17%20at%2017.45.50.png
:alt: kindle
kindle
Release files for consoleprinter 22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| consoleprinter-22.tar.gz | 15.1 kB | Details |
Release files / consoleprinter-22.tar.gz
| Download URL | consoleprinter-22.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c649499366c7f2225d2b32be3e46d642bbaabb2c335feba4de5925736753a8c
|
|
BLAKE2b-256 checksum How to use checksums |
2c5fb0c9adf61695476c1d819a396d72853bff47168369ff4fe89456fd3440a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |