git_well.git_stats module

class git_well.git_stats.GitStatsCLI(*args: Any, **kwargs: Any)[source]

Bases: DataConfig

Valid options: []

Parameters:
  • *args – positional arguments for this data config

  • **kwargs – keyword arguments for this data config

classmethod main(argv: list[str] | str | bool | None = True, **kwargs: Any) None[source]

Example

>>> # xdoctest: +SKIP
>>> from git_well.git_stats import *  # NOQA
>>> argv = 0
>>> kwargs = dict()
>>> cls = GitStatsCLI
>>> cls.main(argv=argv, **kwargs)
default = {'repo_dpath': <Value('.')>}
git_well.git_stats._rich_print_author_stats(author_stats, author_files)[source]

Print author contribution stats as a Rich table.

git_well.git_stats.commit_stats(repo)[source]
git_well.git_stats.author_stats(repo)[source]
git_well.git_stats.main(argv: list[str] | str | bool | None = True, **kwargs: Any) None

Example

>>> # xdoctest: +SKIP
>>> from git_well.git_stats import *  # NOQA
>>> argv = 0
>>> kwargs = dict()
>>> cls = GitStatsCLI
>>> cls.main(argv=argv, **kwargs)