{"id":19824876,"url":"https://github.com/dennis-van-gils/python-dvg-debug-functions","last_synced_at":"2025-10-05T12:59:42.082Z","repository":{"id":37208020,"uuid":"263657804","full_name":"Dennis-van-Gils/python-dvg-debug-functions","owner":"Dennis-van-Gils","description":"Python module to neatly print debug information to the terminal output, well-suited for multithreaded programs.","archived":false,"fork":false,"pushed_at":"2024-06-22T18:16:12.000Z","size":109,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T15:50:59.825Z","etag":null,"topics":["debugging-tool","multithreading","python","traceback"],"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/Dennis-van-Gils.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-13T14:43:55.000Z","updated_at":"2024-06-22T18:06:16.000Z","dependencies_parsed_at":"2025-05-01T13:44:53.428Z","dependency_job_id":"26841e17-e2df-4525-a608-fba653d6201e","html_url":"https://github.com/Dennis-van-Gils/python-dvg-debug-functions","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/Dennis-van-Gils/python-dvg-debug-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-dvg-debug-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-dvg-debug-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-dvg-debug-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-dvg-debug-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dennis-van-Gils","download_url":"https://codeload.github.com/Dennis-van-Gils/python-dvg-debug-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-dvg-debug-functions/sbom","scorecard":{"id":39297,"data":{"date":"2025-08-11","repo":{"name":"github.com/Dennis-van-Gils/python-dvg-debug-functions","commit":"2e5e8ab04aca27bb96f8850e351a12f3b330857f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/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":"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/python-package.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Dennis-van-Gils/python-dvg-debug-functions/python-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/Dennis-van-Gils/python-dvg-debug-functions/python-package.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:58","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand 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":"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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-package.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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt: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"}}]},"last_synced_at":"2025-08-14T21:06:01.024Z","repository_id":37208020,"created_at":"2025-08-14T21:06:01.024Z","updated_at":"2025-08-14T21:06:01.024Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457468,"owners_count":25989956,"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-10-05T02:00:06.059Z","response_time":54,"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":["debugging-tool","multithreading","python","traceback"],"created_at":"2024-11-12T11:06:21.488Z","updated_at":"2025-10-05T12:59:42.066Z","avatar_url":"https://github.com/Dennis-van-Gils.png","language":"Python","readme":".. image:: https://img.shields.io/pypi/v/dvg-debug-functions\n    :target: https://pypi.org/project/dvg-debug-functions\n.. image:: https://img.shields.io/pypi/pyversions/dvg-debug-functions\n    :target: https://pypi.org/project/dvg-debug-functions\n.. image:: https://github.com/Dennis-van-Gils/python-dvg-debug-functions/actions/workflows/python-package.yml/badge.svg\n    :target: https://github.com/Dennis-van-Gils/python-dvg-debug-functions/actions/workflows/python-package.yml\n.. image:: https://coveralls.io/repos/github/Dennis-van-Gils/python-dvg-debug-functions/badge.svg\n    :target: https://coveralls.io/github/Dennis-van-Gils/python-dvg-debug-functions\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n.. image:: https://img.shields.io/badge/License-MIT-purple.svg\n    :target: https://github.com/Dennis-van-Gils/python-dvg-debug-functions/blob/master/LICENSE.txt\n\nDvG_debug_functions\n===================\n*Provides functions for neatly printing debug information to the terminal\noutput, well-suited for multithreaded programs.*\n\nSupports PyQt5, PyQt6, PySide2 and PySide6.\n\n- Github: https://github.com/Dennis-van-Gils/python-dvg-debug-functions\n- PyPI: https://pypi.org/project/dvg-debug-functions\n\nInstallation::\n\n    pip install dvg-debug-functions\n\nAPI\n===\n\nFunctions\n---------\n* ``print_fancy_traceback(err=None, back: int = 3, show_full_paths: bool = False)``\n\n    Print the exception or the current regular call-stack traceback to the\n    terminal, using ANSI color codes that mimic the IPython command shell.\n\n        Args:\n            err (``Exception`` | ``str`` | ``None``, optional):\n                When ``err`` is of type ``Exception``, then an exception traceback will\n                be printed. When ``err`` is of another type, then the current regular\n                call-stack traceback will be printed.\n\n                Default: ``None``\n\n            back (``int``, optional):\n                Depth of the traceback to print.\n\n                Default: ``3``\n\n            show_full_paths (``bool``, optional):\n                Shows the full filepath in the traceback when True, otherwise just\n                the filename.\n\n                Default: ``False``\n\n    Example output:\n\n    .. image:: images/print_fancy_traceback.png\n\n\n* ``dprint(str_msg: str, ANSI_color: str = None)``\n\n    'Debug' print a single line to the terminal with optional ANSI color\n    codes. There is a lot of overhead using this print statement, but it is\n    particularly well-suited for multithreaded PyQt programs where multiple\n    threads are each printing information to the same terminal. The ``dprint()``\n    function ensure that each line sent to the terminal will remain as a\n    continious single line, whereas a regular ``print()`` statement will likely\n    result in the lines getting mixed up.\n\n    The line will be terminated with a newline character and the terminal output\n    buffer is forced to flush before and after every print. In addition, if\n    PyQt5 is present in the Python environment, then a mutex lock will be\n    obtained and released again for each ``dprint()`` execution.\n\n\n* ``tprint(str_msg: str, ANSI_color: str = None)``\n\n    Identical to ``dprint()``, but now prepended with a ``time.perf_counter()``\n    timestamp.\n\nClasses\n-------\n\n    .. code-block:: python\n\n        class ANSI:\n            NONE    = \"\"\n            RED     = \"\\033[1;31m\"\n            GREEN   = \"\\033[1;32m\"\n            YELLOW  = \"\\033[1;33m\"\n            BLUE    = \"\\033[1;34m\"\n            PURPLE  = \"\\033[1;35m\"  # aka MAGENTA\n            MAGENTA = \"\\033[1;35m\"\n            CYAN    = \"\\033[1;36m\"\n            WHITE   = \"\\033[1;37m\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennis-van-gils%2Fpython-dvg-debug-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennis-van-gils%2Fpython-dvg-debug-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennis-van-gils%2Fpython-dvg-debug-functions/lists"}