A Python tool that generates GitHub metrics (stats, languages, Last.fm integration) and commits them to a repository. Can be used as a GitHub Action or run locally.
- Generates GitHub statistics (repos, stars, commits, followers, lines of code)
- Supports language usage visualization
- Integrates with Last.fm for music stats
- Outputs SVG files for GitHub profile READMEs
uv syncAdd to your workflow:
- uses: xxspell/metrics-generator@v1
with:
target_repository: 'your-username/your-repo'
access_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'your-username'
lastfm_token: ${{ secrets.LASTFM_TOKEN }}
lastfm_user: 'your-lastfm-username'See example-action-usage.yml for full configuration.
uv run a.pySet environment variables as needed (ACCESS_TOKEN, USER_NAME, etc.).
target_repository: Repository to commit to (owner/repo)access_token: GitHub tokenuser_name: GitHub usernamelastfm_token: Last.fm API tokenlastfm_user: Last.fm usernameproxy: Optional proxyexcluded_repos: Comma-separated repos to excludeexcluded_languages: Languages to exclude from stats