{"id":37605553,"url":"https://github.com/alikins/color_bucket_logger","last_synced_at":"2026-01-16T10:08:40.642Z","repository":{"id":62563645,"uuid":"186302095","full_name":"alikins/color_bucket_logger","owner":"alikins","description":"A python logging Formatter that colorizes logs by record attribute value bucket","archived":false,"fork":false,"pushed_at":"2020-07-07T04:10:30.000Z","size":154,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-06T04:49:16.891Z","etag":null,"topics":["cli","color","logging","python","python-library","python-logging","terminal","terminal-colors"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alikins.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-12T20:42:42.000Z","updated_at":"2023-02-17T02:21:16.000Z","dependencies_parsed_at":"2022-11-03T16:00:27.465Z","dependency_job_id":null,"html_url":"https://github.com/alikins/color_bucket_logger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alikins/color_bucket_logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alikins%2Fcolor_bucket_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alikins%2Fcolor_bucket_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alikins%2Fcolor_bucket_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alikins%2Fcolor_bucket_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alikins","download_url":"https://codeload.github.com/alikins/color_bucket_logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alikins%2Fcolor_bucket_logger/sbom","scorecard":{"id":184195,"data":{"date":"2025-08-11","repo":{"name":"github.com/alikins/color_bucket_logger","commit":"cfbadcb6511140c8bb951c17498b3ecfbe11cec4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2018-49 / GHSA-rprw-h62v-c2w7","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T19:27:51.832Z","repository_id":62563645,"created_at":"2025-08-16T19:27:51.832Z","updated_at":"2025-08-16T19:27:51.832Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","color","logging","python","python-library","python-logging","terminal","terminal-colors"],"created_at":"2026-01-16T10:08:39.268Z","updated_at":"2026-01-16T10:08:40.634Z","avatar_url":"https://github.com/alikins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===================\ncolor_bucket_logger\n===================\n\n\n.. image:: https://img.shields.io/pypi/v/color_bucket_logger.svg\n        :target: https://pypi.python.org/pypi/color_bucket_logger\n\n.. image:: https://img.shields.io/travis/alikins/color_bucket_logger.svg\n        :target: https://travis-ci.org/alikins/color_bucket_logger\n\n.. image:: https://readthedocs.org/projects/color-bucket-logger/badge/?version=latest\n        :target: https://color-bucket-logger.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/alikins/color_bucket_logger/shield.svg\n     :target: https://pyup.io/repos/github/alikins/color_bucket_logger/\n     :alt: Updates\n\n\nPython logging Formatter for colorizing logs per thread, process, logger name, or any record attribute\n\nUsing this logging formatter to make log records that share a common attribute share a color\nautomatically.\n\nFor example, a process with three threads could show the log entries for each thread in a different\ncolor. The same can be done per process, or per logger name. Any log record attribute can be used\nto choose the color used for the log entry.\n\nThe entire log record, the particular log field ('level' or 'process' for ex.), or a group of\nfields can be colorized based on an attribute value.\n\nFor example, the fields for 'thread', 'threadName', 'process', 'processName' could be colorized\nbased on the thread id.\n\nUsage\n-----\n\nExamples\n--------\n\nBasic config colorized by logger name::\n\n    import logging\n\n    import color_bucket_logger\n\n    log = logging.getLogger('example')\n    log.setLevel(logging.DEBUG)\n\n    log_format = '%(asctime)s %(process)s %(levelname)s %(name)s %(funcName)s -- %(message)s'\n\n    # Use logger name for the primary color of each entry\n    formatter = color_bucket_logger.ColorFormatter(fmt=log_format, default_color_by_attr='name')\n\n    handler = logging.StreamHandler()\n    handler.setLevel(logging.DEBUG)\n    handler.setFormatter(formatter)\n\n    # basicConfig will add our handler to the root logger\n    # Note 'handlers' arg is py3 only\n    logging.basicConfig(level=logging.DEBUG, handlers=[handler])\n\nColor Group Examples\n--------------------\n\nExample uses of color_groups::\n\n    # color almost everything by logger name\n    color_groups = [('name', ['filename', 'module', 'lineno', 'funcName', 'pathname'])]\n\n    color_groups = [\n        ('process', ['default', 'message']),\n        ('process', ['processName', 'process']),\n        ('thread', ['default', 'threadName', 'message', 'unset', 'processName', 'exc_text']),\n        ('thread', ['threadName', 'thread']),\n        ]\n\n    # color logger name, filename and lineno same as the funcName\n    color_groups = [('funcName', ['default', 'message', 'unset', 'name', 'filename', 'lineno'])]\n\n    # color message same as debug level\n    color_groups = [('levelname', ['levelname', 'levelno'])]\n\n    # color funcName, filename, lineno same as logger name\n    color_groups = [('name', ['funcName', 'filename', 'lineno'])]\n\n    # color groups can be based on non standard 'extra' attributes or log record\n    # attibutes created from filters. In this example, a 'task' attributes.\n    color_groups = [('task', ['task_uuid', 'task'])]\n\n    # color default, msg and playbook/play/task by the play\n    color_groups = [('play', ['default','message', 'unset', 'play', 'task'])]\n\nLicense\n-------\n\n* Free software: MIT license\n\n\nFeatures\n--------\n\n* TODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falikins%2Fcolor_bucket_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falikins%2Fcolor_bucket_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falikins%2Fcolor_bucket_logger/lists"}