Skip to main content

A progress bar for Python that brews beer while your code runs

Project description

🍺 brewbar

A progress bar for Python that brews beer while your code runs

No configuration | No dependencies | Just beer


🍻 Demo

from brewbar import bar
import time

for _ in bar(range(50)):
    time.sleep(0.05)

Output:

🍺🍺🍺🍺░░░░  50%  fermenting

brewbar demo

As progress increases, the beer fills and the brew stage changes:

  • mashing
  • boiling
  • fermenting
  • conditioning
  • cheers 🍻

📦 Installation

pip install brewbar

🍺 Usage

from brewbar import bar
import time

for _ in bar(range(100)):
    time.sleep(0.1)

✨ Features

  • 🍺 Beer-brewing themed progress bar
  • 🧠 Simple API (bar(iterable))
  • ⚡ Lightweight (no dependencies)
  • 🖥 Works in standard terminals
  • 🎭 Meme-friendly, screenshot-ready

🛠 Requirements

  • Python 3.8+

❓ Why brewbar?

Because sometimes you don't want:

  • 20 configuration options
  • nested progress bars
  • noisy output

You just want to know when your code is done…
and have a beer while waiting. 🍻

⏱ Timing Metrics (v1.1.2)

brewbar can optionally show:

  • ETA (estimated time remaining)
  • Elapsed runtime
  • Processing speed (items/sec)
  • ASCII fallback for CI / logs
  • Disable output entirely (disable=True)
  • Write to a different stream (file=sys.stderr)
from brewbar import bar
import time

for _ in bar(
    range(200),
    eta=True,
    elapsed=True,
    rate=True,
    ascii=True,
):
    time.sleep(0.05)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brewbar-1.1.2.tar.gz (346.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brewbar-1.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file brewbar-1.1.2.tar.gz.

File metadata

  • Download URL: brewbar-1.1.2.tar.gz
  • Upload date:
  • Size: 346.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for brewbar-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f95230735eb851d5df9fafe4d743e06211bd04e18e040a51ddd05e5da1d4c4c0
MD5 e431c5ae965cc7941472b880c635efa8
BLAKE2b-256 c208be4644062a57bd1f19f8d445c1463fa8a5757c8d0cd5b05756f801867a0c

See more details on using hashes here.

File details

Details for the file brewbar-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: brewbar-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for brewbar-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f5764368938845e8c91c9d929eb223e15174625cb72d95bfb273d2223acd5f
MD5 cc2a623b9ce845c7aa4b2422da064ad8
BLAKE2b-256 88f6fe720d346d49adff30a44c26fff049ee786e38f0ec43eddd6cdee66b33b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page