Skip to main content

Simple log formatters for colored output

Project description

LogColor

Test Lint

When making command line interfaces, it's often useful to colorize the output to emphasize salient pieces of information or otherwise enhance the user experience. Unfortunately it's quite cumbersome to add colorized outputs to Python log messages.

ColorFormatter

The ColorFormatter is a logging formatter that parses your log messages and adds color codes to the log messages.

example

ColorStripper

The ColorStripper formatter is the inverse of the ColorFormatter. It strips the color information from your messages so that you can log to a file without it being full of color codes.

Installation

I'm on pypi!

$ pip install log_color

Features

  • Simple to use
  • No external dependencies
  • Compatibility with Python 3.7+, PyPy
  • Fast! Compiled binaries are available for some systems!

http://no-color.org/

LogColor honors the NO_COLOR environment variable.

Project details


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 Distributions

If you're not sure about the file name format, learn more about wheel file names.

log_color-2.0.1rc0-cp311-cp311-win_amd64.whl (42.6 kB view details)

Uploaded CPython 3.11Windows x86-64

log_color-2.0.1rc0-cp311-cp311-win32.whl (38.6 kB view details)

Uploaded CPython 3.11Windows x86

log_color-2.0.1rc0-cp311-cp311-macosx_10_9_x86_64.whl (58.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

log_color-2.0.1rc0-cp310-cp310-win_amd64.whl (43.0 kB view details)

Uploaded CPython 3.10Windows x86-64

log_color-2.0.1rc0-cp310-cp310-win32.whl (38.9 kB view details)

Uploaded CPython 3.10Windows x86

log_color-2.0.1rc0-cp310-cp310-macosx_10_9_x86_64.whl (58.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

log_color-2.0.1rc0-cp39-cp39-win_amd64.whl (43.0 kB view details)

Uploaded CPython 3.9Windows x86-64

log_color-2.0.1rc0-cp39-cp39-win32.whl (38.9 kB view details)

Uploaded CPython 3.9Windows x86

log_color-2.0.1rc0-cp39-cp39-macosx_10_9_x86_64.whl (58.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

log_color-2.0.1rc0-cp38-cp38-win_amd64.whl (42.7 kB view details)

Uploaded CPython 3.8Windows x86-64

log_color-2.0.1rc0-cp38-cp38-win32.whl (38.6 kB view details)

Uploaded CPython 3.8Windows x86

log_color-2.0.1rc0-cp38-cp38-macosx_10_9_x86_64.whl (57.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

log_color-2.0.1rc0-cp37-cp37m-win_amd64.whl (42.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

log_color-2.0.1rc0-cp37-cp37m-win32.whl (38.1 kB view details)

Uploaded CPython 3.7mWindows x86

log_color-2.0.1rc0-cp37-cp37m-macosx_10_9_x86_64.whl (56.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file log_color-2.0.1rc0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3daa7f75fb55ae41a50944b1d00b3531ade6d78d20b17dd08d7c69d26b59f667
MD5 9c12839edf76215d5c603155489d47ca
BLAKE2b-256 dfe7faff7a8e90933f689c9e16e2db61cb4757284ed198084fec181b728a2c84

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp311-cp311-win32.whl.

File metadata

  • Download URL: log_color-2.0.1rc0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for log_color-2.0.1rc0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e12d2c6b8e7073b1261dffb3c26e42a015f7644a1342ab91e07194a35102704b
MD5 c3bae80dd840be5ca2de4a0c04969e7d
BLAKE2b-256 7c9811c6a36dfee07004046fa32991d02b3344945a18daab20ab3cc35d820692

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 11da7b6173ea96fc56b2a70a2001272cbbf3e850cebc682dcd2e624cb32fba0e
MD5 657db37ba7c39db8e79b1a989aec80dc
BLAKE2b-256 0265510618a0adb12f3c3aef9b45a3397680517e861c72b13f00860644bb01f2

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e75a56dd34928fafa53c8815ca18132289b6f687dee9e17a0257de034f27aacc
MD5 8a8187151339e607f29b4d1df8c5d49b
BLAKE2b-256 e025115bfcb33472dc8135c72b95bd4254530f5b8696d74441fe21cd369d79c3

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp310-cp310-win32.whl.

File metadata

  • Download URL: log_color-2.0.1rc0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for log_color-2.0.1rc0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bcc612af6a7f36f64c810b92b4e19fe753325f83f223602c39e4d7af3398f1f0
MD5 72a3806877903ba205c103327e3f73e8
BLAKE2b-256 f0bf6f44f668d5a470c2a1a1b306954a0f95a353bc2842f10517a9fffa4318bf

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 85d9968153157f299bf359c6f82c6e5ccad0d915aa872cdd886bb36e24b1b993
MD5 66f4b6f026f98b75a4c9a854c87ffa06
BLAKE2b-256 605b77d603ba44e381c7c023336847cdb0566bce9524cd9079e60ca2f88e4ba3

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: log_color-2.0.1rc0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for log_color-2.0.1rc0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 da0ffb043c0d67d4b48988675fce73a4183f9f7a6545264609c749f2db850c17
MD5 2670823bb33b2fb126e565b586470467
BLAKE2b-256 bd3cf99e77d4853ccf5c590eb2d8faf4059f47f08a1118908f0a7c7250b1a55c

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp39-cp39-win32.whl.

File metadata

  • Download URL: log_color-2.0.1rc0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for log_color-2.0.1rc0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fd89e7bd4aeedec1f09944bf5cf6c3a38c6096d51b154474d0066ceacad85d1e
MD5 c453f1912b44c7574764f82332e825b2
BLAKE2b-256 93df968f5e3187cefd6ba4369475d6929acba58d2a12d2d9394cce7108475df5

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0839f269260fad35e098bb1e04a25e721098d4ede77cc5b6208c936e4807e4d3
MD5 09b0791f81562cc79e60df2f8e0e0f6e
BLAKE2b-256 f7f2e7f96b0178c70f0f749213f444b16f481875aa4de774ce0b3a5d5e8bc145

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: log_color-2.0.1rc0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for log_color-2.0.1rc0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4152494453cbc371fa041bc08e69a07ba577118e4823a65ce011bbd639afb082
MD5 3e6240121d1e61f4144b73f693e932cd
BLAKE2b-256 43b1bf045d29270bdcf47432116eabf7969dea00e9fe8a7a54709c271ef05a28

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp38-cp38-win32.whl.

File metadata

  • Download URL: log_color-2.0.1rc0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for log_color-2.0.1rc0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dd444aee8f5d79f7356ede4de76c24682a8065ff5d002e222634d1e0147a60f2
MD5 a94cf2aa5eeec13bf9a91cc46a9612e2
BLAKE2b-256 9c05c031524c3218b640916aa04ebe8c16d7392d2413dbb372f25cddefc4b523

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 47e2849f36adb12eb7e761b1b2985967106b8f3bbbe81c97f29d5992fef0b7cf
MD5 aed21e98d010d5cb99e8728d9918792d
BLAKE2b-256 38fec1b9998e14106ff6fd1ca724ae8aaf78669c6856ec0fea3c388f0bd45924

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9cc7c0113459acb21e0fa26949470a1534f3ea7a76dfac6ebf1b6926b702be08
MD5 2b64c7302ab52bb9c4da071370f51731
BLAKE2b-256 6a249af87a40b3a0db032ada5bc24946a8f1e95a5d7388b7b724841644229760

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp37-cp37m-win32.whl.

File metadata

  • Download URL: log_color-2.0.1rc0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for log_color-2.0.1rc0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8cd068906b51e773ce246259135a998b1b77ff22482bc3d0618afb6136accc60
MD5 84133cb372c8cec49d54da299ee113af
BLAKE2b-256 64d06b0cdcf01f4e0c217bf6340495c0d79750bdd240d3a89ea7a925ce80ba29

See more details on using hashes here.

File details

Details for the file log_color-2.0.1rc0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for log_color-2.0.1rc0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f94fe95a9109cf3130290aab7fb5ca39bdcfc7c65fd3f44389f087b17c74a1fb
MD5 e6a0c29874db149f727512db11da02d4
BLAKE2b-256 fe3a55943bfdf90217f0e1837b7c897ec588969cb5a7396de57a4c00b4da540e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page