GitStats Updates: JSON Export, Code Refactoring, Argparse Migration, and Multi‑Platform Support
The latest GitStats release adds JSON report generation, extensive code refactoring with argparse replacing getopt, and full testing on Linux, Windows, and macOS, while outlining upcoming dark‑mode theming and a goal of 100% unit‑test coverage.
Since the previous post, the GitStats project has received several major updates.
New Features and Improvements
JSON file generation : In addition to the existing HTML report, GitStats can now output JSON files, making it easier for developers to integrate the data into custom tools and scripts.
Code refactoring : The codebase has been split and optimized, resulting in a clearer structure that is easier to maintain and provides a solid foundation for unit testing.
Argparse replacement : The deprecated getopt module has been replaced with the modern argparse library, improving readability and maintainability.
Multi‑platform support : GitStats is now tested on Linux, Windows, and macOS via continuous integration, ensuring reliable operation across all three major platforms.
Upcoming Plans
Theme switching : A dark‑mode theme will be added alongside the default theme to accommodate different visual preferences.
Unit tests and coverage : Additional unit tests will be written with a target of reaching 100% test coverage.
Feedback and feature requests are welcomed via the GitHub repository, and users are encouraged to star the project if they find it helpful.
DevOps Engineer
DevOps engineer, Pythonista and FOSS contributor. Created cpp-linter, commit-check, etc.; contributed to PyPA.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.