technicolor
logging in colour
introduction
technicolor provides logging in colour and logging of function usage by means of a simple decorator.
quick start
In the main code of the program could be a technicolor logging setup such as the following:
global log
log = logging.getLogger(__name__)
logging.root.addHandler(technicolor.ColorisingStreamHandler())
if self.verbose:
logging.root.setLevel(logging.DEBUG)
else:
logging.root.setLevel(logging.INFO)
Then, in modules imported, there could be a logging setup such as the following:
log = logging.getLogger(__name__)
The function logging of technicolor logs the name of the function called, the caller of the function and the arguments of the function used. This functionality can be engaged by using a decorator in a way such as the following:
@technicolor.log
def function1(
a,
b,
c = 4,
d = 5,
e = 6
):
return(a + b + c + d + e)
Metadata
Release files for technicolor 2017.1.16.1544
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 | Actions |
|---|---|---|---|---|
| technicolor-2017.1.16.1544.tar.gz | 15.3 kB | Without provenance | Details for technicolor-2017.1.16.1544.tar.gz |
Release files / technicolor-2017.1.16.1544.tar.gz
| Download URL | technicolor-2017.1.16.1544.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
667c2fad8265c13610eed331d2ec758874dc1e550ece5804bbed9187f2df2bea
|
|
BLAKE2b-256 checksum How to use checksums |
2be477fd62d1a11f4ef2d47cb77efac62de3068bdece0dde68409343945b76fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for technicolor 2017.1.16.1544
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.