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

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

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.0.0)

brewbar can optionally show:

  • ETA (estimated time remaining)
  • Elapsed runtime
  • Processing speed (items/sec)
  • ASCII fallback for CI / logs
from brewbar import bar

for _ in bar(
    range(200),
    eta=True,
    elapsed=True,
    rate=True,
    ascii=True
):
    work()

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.0.1.tar.gz (3.5 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.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for brewbar-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9fddf87bf58ccb9c38a98b5a148807d3d78b2a002b17bfc996637cb25584ca70
MD5 e3fe2539a1b0c978ac78e839c22b69c8
BLAKE2b-256 1b39b9a493a8b1b87cfe8c617a11af6abc5f565b62378ccf9358504c4520cb03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brewbar-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96cd8a277e4f1c95f63ab1e966712e90a7f2d833b36bc5929ace2c4626594a77
MD5 9461b3b8583def1f232f2b8ba4d4bbf3
BLAKE2b-256 f9d8570a460759c63114310400d1f68b87c0e057af1c55c103b6290eee0e7156

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