Skip to main content

Get started

hubbub makes some noise on your GitHub profile README. It introduces you as text or as an animated GIF, adds profile badges, pulls your activity from the GitHub API, and charts it. It is the Python counterpart to the R package ghreadme.

Installation

hubbub isn’t on PyPI. Add the development version from GitHub to a uv project:

uv add git+https://github.com/mjfrigaard/hubbub

or install it into the current environment:

uv pip install git+https://github.com/mjfrigaard/hubbub

hubbub depends on matplotlib, numpy, pillow, and polars. Interactive scatter plots need the plotly extra (hubbub[plotly]).

Your profile README

GitHub shows the README.md from a repo named after your username (for example, mjfrigaard/mjfrigaard) at the top of your profile. In that repo, use_profile_readme() writes a build_readme.py script:

from hubbub import use_profile_readme

use_profile_readme(
    name="Martin",
    likes="#rstats and data visualization.",
    learn="Shiny for Python app development and Linux administration.",
    work="Shiny app-package development tools.",
    collab="#rstats and #pystats packages for data science.",
    username="mjfrigaard",
)

Run it with uv run --with hubbub python build_readme.py (or python build_readme.py in an environment with hubbub) to write README.md. To rebuild it every week, add a GitHub Action:

from hubbub import use_profile_readme_action

use_profile_readme_action(cron="0 6 * * 0")  # Sundays at 06:00 UTC

Introductions

who_am_i() prints your introduction one line at a time and returns the lines:

from hubbub import who_am_i

lines = who_am_i(
    name="Martin",
    likes="#rstats and data visualization.",
    learn="Shiny for Python app development and Linux administration.",
    work="Shiny app-package development tools.",
    collab="#rstats and #pystats packages for data science.",
    delay=0,
)
πŸ‘‹ Hi, my name is Martin.
πŸ‘€ I like #rstats and data visualization.
🌱 I'm learning about Shiny for Python app development and Linux administration.
πŸ“¦ I'm currently working on Shiny app-package development tools.
πŸ’ž I'd love to collaborate on #rstats and #pystats packages for data science.
πŸ“« Want to connect? Use the badges below...

who_am_i_gif() takes the same arguments and writes the introduction as a terminal style GIF. The walkthrough shows the result.

Badges

gh_badges() returns Markdown for GitHub profile summary cards, and so_rep() returns HTML for a Stack Overflow reputation badge:

from hubbub import gh_badges, so_rep

print(gh_badges("mjfrigaard", badge=["details", "stats"], theme="dark"))
![](http://github-profile-summary-cards.vercel.app/api/cards/profile-details?username=mjfrigaard&theme=github_dark)
![](http://github-profile-summary-cards.vercel.app/api/cards/stats?username=mjfrigaard&theme=github_dark)
print(so_rep(username="martin-frigaard", user_id=4926446))
<a href='https://stackoverflow.com/users/4926446/martin-frigaard' target='_blank'>
<img alt='StackOverflow'
src='https://stackoverflow-badge.vercel.app/?userID=4926446' />
</a>

Next, the walkthrough pulls real data and charts it.