{"id":16603293,"url":"https://github.com/dbrgn/coverage-badge","last_synced_at":"2025-04-08T09:07:30.232Z","repository":{"id":2424903,"uuid":"44159813","full_name":"dbrgn/coverage-badge","owner":"dbrgn","description":"Create badges/shields for your Python test coverage!","archived":false,"fork":false,"pushed_at":"2024-08-02T23:34:18.000Z","size":54,"stargazers_count":204,"open_issues_count":1,"forks_count":168,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T04:40:28.054Z","etag":null,"topics":[],"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/dbrgn.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-13T07:34:43.000Z","updated_at":"2025-03-21T06:14:23.000Z","dependencies_parsed_at":"2024-04-15T08:31:42.614Z","dependency_job_id":"5cd6e318-4fd3-45b4-a429-3c407b107480","html_url":"https://github.com/dbrgn/coverage-badge","commit_stats":{"total_commits":59,"total_committers":7,"mean_commits":8.428571428571429,"dds":"0.15254237288135597","last_synced_commit":"c5f4b72ab0169eb714a4f306e9e994942a47c478"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcoverage-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcoverage-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcoverage-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcoverage-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/coverage-badge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809962,"owners_count":20999816,"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","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":[],"created_at":"2024-10-12T00:49:04.832Z","updated_at":"2025-04-08T09:07:30.209Z","avatar_url":"https://github.com/dbrgn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Coverage.py Badge\n==================\n\n.. |buildstatus| image:: https://github.com/dbrgn/coverage-badge/workflows/CI/badge.svg\n    :alt: Build status\n    :target: https://github.com/dbrgn/coverage-badge/actions?query=branch%3Amain\n.. |downloads| image:: https://img.shields.io/pypi/dm/coverage-badge.svg\n    :alt: PyPI Downloads\n    :target: https://pypi.python.org/pypi/coverage-badge\n.. |example| image:: https://cdn.rawgit.com/dbrgn/coverage-badge/main/example.svg\n    :alt: Example coverage badge\n\n|buildstatus| |downloads|\n\n   ⚠️ coverage-badge is in maintenance mode. I might still do occasional updates\n   and fixes from time to time, but there will be no added features. Most\n   people using coverage-badge might want to use genbadge_ instead, which has\n   more features (e.g. test badges, flake8 reports, etc).\n\nA small script to generate coverage badges using Coverage.py.\n\nExample of a generated badge: |example|\n\nThe badge template has been taken from shields.io_, therefore it should look\nmostly good. (The spec is a bit stricter on the margins, but I can't easily do\ntext width calculations in Python so the margins might not always be 4px.)\n\n.. _shields.io: http://shields.io/\n.. _genbadge: https://smarie.github.io/python-genbadge/\n\nInstallation\n------------\nRun:\n\n.. code-block::\n    \n    pip install coverage-badge\n\n\nUsage\n-----\n\nFirst, run Coverage.py to generate the necessary coverage data. Then you can\neither return the badge SVG to stdout::\n\n    $ coverage-badge\n\n...or write it to a file::\n\n    $ coverage-badge -o coverage.svg\n\nIt's important that you run ``coverage-badge`` from the directory where the\n``.coverage`` data file is located.\n\nDifferent colors for cover ranges:\n\n.. image:: https://cdn.rawgit.com/dbrgn/coverage-badge/main/media/15.svg\n    :alt: 15%\n\n.. image:: https://cdn.rawgit.com/dbrgn/coverage-badge/main/media/45.svg\n    :alt: 45%\n\n.. image:: https://cdn.rawgit.com/dbrgn/coverage-badge/main/media/65.svg\n    :alt: 65%\n\n.. image:: https://cdn.rawgit.com/dbrgn/coverage-badge/main/media/80.svg\n    :alt: 80%\n\n.. image:: https://cdn.rawgit.com/dbrgn/coverage-badge/main/media/93.svg\n    :alt: 93%\n\n.. image:: https://cdn.rawgit.com/dbrgn/coverage-badge/main/media/97.svg\n    :alt: 97%\n\n----\n\nThe full usage text::\n\n    usage: __main__.py [-h] [-o FILEPATH] [-p] [-f] [-q] [-v]\n\n    Generate coverage badges for Coverage.py.\n\n    optional arguments:\n      -h, --help   show this help message and exit\n      -o FILEPATH  Save the file to the specified path.\n      -p           Plain color mode. Standard green badge.\n      -f           Force overwrite image, use with -o key.\n      -q           Don't output any non-error messages.\n      -v           Show version.\n\nLicense\n-------\n\nMIT License, see `LICENSE.txt` file..\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fcoverage-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fcoverage-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fcoverage-badge/lists"}