{"id":16653951,"url":"https://github.com/underyx/structlog-pretty","last_synced_at":"2025-09-22T07:31:42.081Z","repository":{"id":55677754,"uuid":"74127944","full_name":"underyx/structlog-pretty","owner":"underyx","description":"A collection of structlog processors for prettier output: a code syntax highlighter, JSON and XML prettifiers, a multiline string printer, and a numeric value rounder.","archived":false,"fork":false,"pushed_at":"2024-07-15T19:39:07.000Z","size":41,"stargazers_count":35,"open_issues_count":5,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-06T07:38:30.574Z","etag":null,"topics":["logging","python","structured-logging"],"latest_commit_sha":null,"homepage":"","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/underyx.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"underyx"}},"created_at":"2016-11-18T12:29:56.000Z","updated_at":"2024-10-24T07:33:16.000Z","dependencies_parsed_at":"2024-06-20T23:24:28.482Z","dependency_job_id":"e78f0eed-70b8-40bc-a804-d68bb9d0fb93","html_url":"https://github.com/underyx/structlog-pretty","commit_stats":{"total_commits":27,"total_committers":5,"mean_commits":5.4,"dds":"0.14814814814814814","last_synced_commit":"e64058b97a811b2fc839766a713402faa895ad7a"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/underyx/structlog-pretty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underyx%2Fstructlog-pretty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underyx%2Fstructlog-pretty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underyx%2Fstructlog-pretty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underyx%2Fstructlog-pretty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/underyx","download_url":"https://codeload.github.com/underyx/structlog-pretty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underyx%2Fstructlog-pretty/sbom","scorecard":{"id":909365,"data":{"date":"2025-08-11","repo":{"name":"github.com/underyx/structlog-pretty","commit":"a6a4abbb1f6e4a879f9f5a95ba067577cea65a08"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":1,"reason":"Found 3/28 approved changesets -- score normalized to 1","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/semgrep.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/underyx/structlog-pretty/semgrep.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/semgrep.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/underyx/structlog-pretty/semgrep.yml/main?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/semgrep.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":8,"reason":"2 out of the last 2 releases have a total of 2 signed artifacts.","details":["Info: signed release artifact: structlog-pretty-0.1.0.post1.tar.gz.asc: https://github.com/underyx/structlog-pretty/releases/tag/0.1.0-1","Info: signed release artifact: structlog-pretty-0.1.0.tar.gz.asc: https://github.com/underyx/structlog-pretty/releases/tag/0.1.0","Warn: release artifact 0.1.0-1 does not have provenance: https://api.github.com/repos/underyx/structlog-pretty/releases/4931001","Warn: release artifact 0.1.0 does not have provenance: https://api.github.com/repos/underyx/structlog-pretty/releases/4709713"],"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 'main'"],"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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-55x5-fj6c-h6m8","Warn: Project is vulnerable to: PYSEC-2014-9 / GHSA-57qw-cc2g-pv5p","Warn: Project is vulnerable to: PYSEC-2021-19 / GHSA-jq4v-f5q6-mjqq","Warn: Project is vulnerable to: GHSA-pgww-xf46-h92r","Warn: Project is vulnerable to: PYSEC-2022-230 / GHSA-wrxv-2j5q-m38w","Warn: Project is vulnerable to: PYSEC-2018-12 / GHSA-xp26-p53h-6h2p","Warn: Project is vulnerable to: PYSEC-2024-40 / GHSA-pwr2-4v36-6qpr","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: PYSEC-2021-141"],"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 6 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-24T18:33:18.180Z","repository_id":55677754,"created_at":"2025-08-24T18:33:18.181Z","updated_at":"2025-08-24T18:33:18.181Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276367042,"owners_count":25629964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["logging","python","structured-logging"],"created_at":"2024-10-12T09:48:07.483Z","updated_at":"2025-09-22T07:31:41.755Z","avatar_url":"https://github.com/underyx.png","language":"Python","readme":"structlog-pretty\n================\n\n.. image:: https://circleci.com/gh/underyx/structlog-pretty.svg?style=shield\n   :target: https://circleci.com/gh/underyx/structlog-pretty\n   :alt: CI Status\n\n.. image:: https://codecov.io/gh/underyx/structlog-pretty/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/underyx/structlog-pretty\n   :alt: Code Coverage\n\nA collection of structlog_ processors for prettier output: a code syntax\nhighlighter, JSON and XML prettifiers, a multiline string printer, and\na numeric value rounder.\n\nInstallation\n------------\n\nFirst of all, sorry, grandma, but ``structlog-pretty`` requires Python 3.\n\nYou can just install the library with pip::\n\n    pip install structlog-pretty\n\nor, if you want faster prettifying processors::\n\n    pip install structlog-pretty[fast]\n\nThe downside of the faster processors is that they will build C extensions and\nthey need ``libxml`` to be installed.\n\nUsage\n-----\n\nAdd structlog-pretty processors to your structlog configuration\n\n.. code-block:: python\n\n    import structlog\n    import structlog_pretty\n\n    structlog.configure(\n        # ...\n        processors=[\n            structlog.stdlib.add_log_level,\n            structlog_pretty.NumericRounder(digits=2, only_fields=['timing'])\n            structlog.processors.JSONRenderer(),\n        ],\n    )\n\nA nice example of a processor pipeline for the *prettiest* logs could be\n\n.. code-block:: python\n\n    processors=[\n        # ...\n        structlog_pretty.JSONPrettifier(['request', 'response']),\n        structlog_pretty.XMLPrettifier(['soap_response']),\n        structlog_pretty.PathPrettifier(),\n        structlog_pretty.SyntaxHighlighter({'request': 'json', 'response': 'json', 'soap_response': 'xml'}),\n        structlog_pretty.MultilinePrinter(['request', 'response', 'soap_response']),\n        # ...\n    ],\n\n.. _structlog: https://github.com/hynek/structlog\n","funding_links":["https://ko-fi.com/underyx"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderyx%2Fstructlog-pretty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funderyx%2Fstructlog-pretty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderyx%2Fstructlog-pretty/lists"}