console-logging
Better console logging for Python.
Find us on PyPi: https://pypi.python.org/pypi/console-logging
Showcase
Getting Started
Dependencies
Python 2.6+ or Python 3.5+
termcolor
Installation
pip install console-logging
If building from source: bash pipe from inside this repo.
Usage
New:
from console_logging.console import Console
console = Console()
console.log("Hello world!")
Old:
from console_logging import console
console.log("Hello World!")
Exhaustive Reference
console.log("This is a log.")
console.error("This is an error.")
console.info("This is some neutral info.")
console.success("This is a success message.")
# If using the new usage:
console.setVerbosity(4) # verbosity from 1 - 5, in order:
'''
[1] Errors
[2] Successes
[3] Logs
[4] Info
[5] Secure
'''
console.mute() # shorthand for setVerbosity(0)
Example
For an exhaustive example, see tests/example.py.
Credit
termcolor module for colors
Metadata
Release files for console-logging 0.0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| console-logging-0.0.5.0.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| console_logging-0.0.5.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / console-logging-0.0.5.0.tar.gz
| Download URL | console-logging-0.0.5.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
112818db84663a194ca445ea17413f98fecbb979605951f6d232e6536a9b5263
|
|
BLAKE2b-256 checksum How to use checksums |
1d1cebfe74dbbffa975d7f6e426c1ee367a286b3522baf3703032f9567d64702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / console_logging-0.0.5.0-py2.py3-none-any.whl
| Download URL | console_logging-0.0.5.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f41a11667c200adefdf9a346a914aeb9d6b919915a0bbc3a69f88ecd3e72d8e0
|
|
BLAKE2b-256 checksum How to use checksums |
52373031196e48f40a209989ed85f3fa6afa10b957acd118152ee163eeab305d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for console-logging 0.0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.