
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
bprogress
Advanced tools
์ ์ ๋ฌธ์๋ฅผ ์ด์ฉํ ํ๋ก๊ทธ๋ ์ค ๋ณด๋. ์์ ๋ก์ด ๋ ์ด์์ ์ปค์คํฐ๋ง์ด์ฆ, ํ์คํฌ๋ณ ๋ก๊ทธ ํจ๋, ํ ์คํฌ ์๋ฌ ๋ฆฌํฌํธ, Windows/Linux/macOS ํฐ๋ฏธ๋ ๋ณต๊ตฌ๊น์ง ์ง์.
w/s ๋๋ โ/โ, Home/End. (Linux๊ณ์ด ํ๊ฒฝ ํ์ )fit(๋ด์ฉ๋ง), full(ํฐ๋ฏธ๋ ๋์ด ์ฑ์). ALT ์คํฌ๋ฆฐ ์ต์
.pip install braille-progress # ๋๋ ์ ์ฅ์ ๊ฒฝ๋ก์์ ์ค์น
Python โฅ 3.8. Windows๋ Windows Terminal ๋ฑ VT ์ง์ ์ฝ์ ๊ถ์ฅ.
from braille_progress import Progress, ProgressTheme
p = Progress(
row_policy="fit", # ์ ์ถ๋ ฅ ๋ณด์กด, ํ์ํ ์ค๋ง ์๋์ ํ๋ณด
split_ratio=0.58, # ์ข์ธก:์ฐ์ธก ํญ ๋น์จ
show_vsep=True, # ์ธ๋ก ๊ตฌ๋ถ์ ํ์
)
t1 = p.add("download", total=100)
t2 = p.add("extract", total=30)
for i in range(10):
t1.advance(1, stage="writing", label=f"part {i}")
p.log(t1, f"chunk {i} ok")
p.loop() # w/s ๋๋ โ/โ๋ก ์ ํ, ๋ง์ฐ์ค ํด๋ฆญ์ผ๋ก๋ ์ ํ ๊ฐ๋ฅ
p.close() # ์ข
๋ฃ ๋ฐ ์๋ฌ ๋ฆฌํฌํธ/ํฐ๋ฏธ๋ ์ํ ๋ณต๊ตฌ
from braille_progress import Progress
p = Progress(split_ratio=0.55, show_vsep=True)
a = p.add("prepare", total=10)
b = p.add("train", total=500)
for i in range(10):
a.advance(1, stage="writing"); p.log(a, f"prepare step {i}")
for i in range(50):
b.advance(1, stage="writing"); p.log(b, f"loss={1/(i+1):.4f}")
p.loop() # ๋ง์ฐ์ค ํด๋ฆญ ๋๋ w/s, โ/โ๋ก ์ ํ; ์ค๋ฅธ์ชฝ์ ํด๋น ํ์คํฌ ๋ก๊ทธ ํ์
p.close()
์กฐ์:
w/โ ์, s/โ ์๋, Home/End, q ๋๋ Ctrl+C ์ข
๋ฃfrom braille_progress import Progress
p = Progress()
h = p.add("convert", total=3)
with p.hijack_stdio(h): # print()/traceback์ด ํด๋น ํ์คํฌ ๋ก๊ทธ ํจ๋๋ก ๋ค์ด๊ฐ
print("converting...")
try:
1/0
except Exception as e:
h.fail(error=e) # ์ข
๋ฃ ์ ์์ ํธ๋ ์ด์ค๋ฐฑ๋ ์ต์ข
๋ฆฌํฌํธ๋ก ์ถ๋ ฅ
p.close()
from braille_progress import (
Progress, ProgressTheme, Layout, Name, Bar, Percent, Status,
MiniBar, Counter, Label, Text, Gap, Elapsed, AvgRate, ETA,
Rule, Now, VLayout, VGap, default_layout
)
theme = ProgressTheme.auto_fit()
row = Layout([
Name(width=22),
Text(" | "),
Bar(cells=18),
Percent(width=5),
Gap(2),
Status(width=16),
Text(" | "),
MiniBar(cells=10),
Counter(),
Gap(2),
Label(width="flex")
], theme=theme)
header = VLayout([ Rule(), Text(" Jobs"), VGap(1) ])
footer = VLayout([ VGap(1), Rule(), Text(" Ready "), Now() ])
p = Progress(layout=row, header=header, footer=footer, split_ratio=0.6, show_vsep=True)
a = p.add("aa.zip", total=100)
b = p.add("bb.zip", total=100)
a.advance(30, stage="writing", label="downloading")
b.advance(70, stage="writing", label="processing")
p.loop()
p.close()
๋ฉ๋ชจ:
Label(width="flex") ๊ฐ๋ณ ํญ์ผ๋ก ๋จ์ ๊ณต๊ฐ์ ์ฐจ์งํ๋ฉฐ, ์ค๋ง์ถค ํ์ ์ ๋ง์ง๋ง์ ์ถ์๋ฉ๋๋ค.Label์ด ์๋๋ผ๋ ๋ง์ง๋ง ์ธ๊ทธ๋จผํธ๋ฅผ ์ถ์ํด ์ค๋ฐ๊ฟ์ ๋ฐฉ์งํฉ๋๋ค.# ํฐ๋ฏธ๋ ์ ์ฒด ๋์ด ์ฑ์(๋์๋ณด๋)
p = Progress(row_policy="full", min_body_rows=8, use_alt_screen=True)
# ๋ด์ฉ๋ง ํ์(ํ๋ฉด ์ ์ฒด ์ ์ ์์)
p = Progress(row_policy="fit", max_body_rows=12, use_alt_screen=False)
row_policy:
"full": ํค๋+๋ฐ๋+ํธํฐ๊ฐ ํฐ๋ฏธ๋ ๋์ด๋ฅผ ์ฑ์"fit": ์ฝํ
์ธ ์ ๋ง๊ฒ ๋ฐ๋ ํ ๊ฐ์๋ฅผ ๊ฒฐ์ (min_body_rows/max_body_rows๋ก ์ยทํํ ์ ์ด)from braille_progress import Progress, DetailRenderer
class MetricsPanel(DetailRenderer):
def render(self, *, width, height, styler, title, lines):
out = [styler.color(f"[{title}] metrics", fg="bright_magenta").ljust(width)[:width]]
for i in range(1, height):
out.append(f"logs={len(lines)} row={i}".ljust(width)[:width])
return out
p = Progress(right_renderer=MetricsPanel(), split_ratio=0.5)
h = p.add("task", total=10)
for i in range(10): p.log(h, f"event {i}")
p.loop(); p.close()
๋ด์ฅ ๋ ๋๋ฌ:
ConsoleRenderer(๊ธฐ๋ณธ): ์ ๋ชฉ + ๋๋ถ๋ถ ๋ก๊ทธStaticRenderer(lines): ๊ณ ์ ๋ฌธ์์ด ๋ฆฌ์คํธ์คํจํ ํ์คํฌ๋ Progress.close() ์ ์ปฌ๋ฌ ํธ๋ ์ด์ค๋ฐฑ๊ณผ ํจ๊ป ์์ฝ๋ฉ๋๋ค.
from braille_progress import Progress
p = Progress()
try:
with p.task("upload", total=3) as h:
raise RuntimeError("remote closed")
except Exception:
pass
p.close() # ์คํจ ํ์คํฌ์ ํ์ผ/๋ผ์ธ/ํจ์/์ฝ๋๊ฐ ๊ฐ์กฐ๋ ํธ๋ ์ด์ค๋ฐฑ ์ถ๋ ฅ
fail(error=..., error_tb=True)์ ์์ธ๋ฅผ ๋๊ธฐ๋ฉด ํธ๋ ์ด์ค๋ฐฑ์ด ์์๊ฒ ํฌ๋งคํ
๋ฉ๋๋ค.
from braille_progress import Progress, QueueBinder, progress_message
p = Progress()
h = p.add("worker-0", total=100)
# ๋ถ๋ชจ ํ๋ก์ธ์ค
binder = p.bind_queue(my_queue)
while True:
changed = binder.drain()
if changed: p.render(throttle=False)
if p.all_finished(): break
# ์์ปค ํ๋ก์ธ์ค
my_queue.put(progress_message(0, stage="writing", done=5, total=100, label="chunk-5"))
my_queue.put(progress_message(0, final=True)) # DONE
๋ฉ์์ง ์คํค๋ง๋ ๊ธฐ๋ณธ ํค(i, stage, case_done, case_total, case_label)๋ฅผ ์ฌ์ฉํ๋ฉฐ, QueueBinder ์์ฑ ์ ํค๋ฅผ ์ค๋ฒ๋ผ์ด๋ํ ์ ์์ต๋๋ค.
Progress(
theme: Optional[ProgressTheme]=None,
*,
auto_vt: bool=True,
auto_refresh: bool=True,
refresh_interval: float=0.05,
force_tty: Optional[bool]=None,
force_color: Optional[bool]=None,
ratio_strategy: Optional[RatioStrategy]=None,
layout: Optional[Layout]=None,
header: Optional[Union[VLayout, Layout, Sequence[Row]]]=None,
footer: Optional[Union[VLayout, Layout, Sequence[Row]]]=None,
# ์ข์ฐ ๋ถํ /์ฐ์ธก ํจ๋
split_ratio: float=0.55,
show_vsep: bool=True,
right_renderer: Optional[DetailRenderer]=None,
# ์ธ๋ก ์ ์ฑ
row_policy: str="fit", # "fit" | "full"
min_body_rows: int=0, # ์ต์ ํ์ ์ค ์(fit/full ๊ณตํต)
max_body_rows: Optional[int]=None, # fit ๋ชจ๋์์ ์ต๋ ์ค ์ ์ ํ
# ์คํฌ๋ฆฐ/์๊ทธ๋
use_alt_screen: bool=False,
handle_signals: bool=True
)
auto_refresh: ์ํ ๋ณ๊ฒฝ ์ ์๋ ๋ฆฌ๋ ๋.refresh_interval: ์๋ ๋ฆฌ๋ ๋ ์ต์ ๊ฐ๊ฒฉ(์ด).theme: ํญ ๊ณ์ฐ/์์ ํ๋ ํธ. ProgressTheme.auto_fit() ๊ถ์ฅ.force_color: True๋ฉด ANSI ์ ๊ฐ์ , False๋ฉด ๋นํ์ฑ.force_tty: ๊ฐ์ ๋ก TTY ๋ชจ๋๋ก ๋ ๋(ํ์ดํ ํ๊ฒฝ ํ
์คํธ์ฉ).ratio_strategy: ์งํ๋ฅ ๊ณ์ฐ ์ ๋ต ์ปค์คํฐ๋ง์ด์ฆ.layout: ํ ์ค์ ๊ตฌ์ฑํ๋ ๋น๋ฉ๋ธ๋ก(Layout DSL). ๋ฏธ์ง์ ์ ๊ธฐ๋ณธ ๋ ์ด์์.header/footer: ์/ํ๋จ์ ์ธ๋ก ๋ ์ด์์ ์ถ๊ฐ. VLayout, Layout, Row ์ํ์ค ์ง์.split_ratio: ์ข์ธก ๋ฆฌ์คํธ ํญ ๋น์จ(0.1~0.9).show_vsep: ์ข์ฐ ์ฌ์ด์ โ ํ์.right_renderer: ์ฐ์ธก ํจ๋ ์ฝํ
์ธ ๋ ๋๋ฌ. ๊ธฐ๋ณธ์ ์ฝ์ ๋ก๊ทธ(ConsoleRenderer).row_policy="fit": ์ ๊ธฐ์กด ์ถ๋ ฅ์ ๊ทธ๋๋ก ๋๊ณ , ์๋์ ํ์ํ ์ค๋ง ํ๋ณดํ์ฌ ๊ทธ ์์์ ๊ฐฑ์ (์คํฌ๋ฆฐ ์ ์ฒด๋ฅผ ์ฑ์ฐ์ง ์์).row_policy="full": ํ์ฌ ํฐ๋ฏธ๋ ๋์ด์ ๋ง์ถฐ ๋ณธ๋ฌธ ์์ญ์ ์ฑ์.min_body_rows: ์ต์ ์ค ๋ณด์ฅ.max_body_rows: fit ๋ชจ๋์์ ์ต๋ ์ค ์ ํ.use_alt_screen: True๋ฉด ALT ์คํฌ๋ฆฐ(๋ณ๋ ๋ฒํผ) ์ฌ์ฉ.handle_signals: SIGINT/SIGTERM/SIGHUP์์ ํฐ๋ฏธ๋/์
๋ ฅ ๋ชจ๋ ์์ ๋ณต๊ตฌ.h = p.add(name: str, total: int = 0) -> TaskHandle
TaskHandle๋ก ๊ฐฑ์ .p.update(handle_or_id, *, advance=0, done=None, total=None,
stage=None, label=None, finished=None, failed=None) -> None
advance๋ done์ ์ฆ๊ฐ์ํด.h.advance(n: int=1, *, label: Optional[str]=None, stage: Optional[str]=None) -> TaskHandle
p.done(handle_or_id) -> None
h.complete() -> None
stage="done").p.fail(handle_or_id, *, stage: str="error",
error: Optional[Any]=None, error_tb: bool=True) -> None
h.fail(stage: str="error") -> None
error์ ์์ธ ๊ฐ์ฒด๋ฅผ ๋๊ธฐ๋ฉด ์ข
๋ฃ ์ ์์ traceback ํฌํจ ์๋ฌ ๋ฆฌํฌํธ ์ถ๋ ฅ.p.all_finished() -> bool
with p.task("name", total=10) as h:
...
fail(), ์ ์ ์ข
๋ฃ ์ ์๋ done().for item in p.track(iterable, total=None, description=None, label_from=None):
...
fail().p.log(handle_or_id, msg: str) -> None
p.set_right_renderer(renderer: DetailRenderer) -> None
with p.hijack_stdio(handle_or_id):
# ์ด ๋ธ๋ก์ stdout/stderr๋ ์ฐ์ธก ํจ๋ ๋ก๊ทธ๋ก ์ ์
print("captured")
p.render(throttle: bool=False) -> None
throttle=True๋ฉด refresh_interval์ ์กด์ค.p.loop() -> None
์ธํฐ๋ํฐ๋ธ UI ๋ฃจํ ์์.
w/s ๋๋ โ/โ๋ก ์ข์ธก ์ ํ ์ด๋.q ๋๋ Ctrl+C๋ก ์ข
๋ฃ.p.close() -> None
qb = p.bind_queue(queue, id_key="i", stage_key="stage",
done_key="case_done", total_key="case_total",
label_key="case_label")
changed = qb.drain()
from braille_progress import DetailRenderer
class MyPanel(DetailRenderer):
def render(self, *, width, height, styler, title, lines):
out = [styler.color(f"[{title}] metrics", fg="bright_magenta").ljust(width)[:width]]
for i in range(1, height):
txt = f"rows={height}, logs={len(lines)}"
out.append(txt.ljust(width)[:width])
return out
width/height ๋ด์์๋ง ์ถ๋ ฅํ๋๋ก ๋ฐ๋์ ํจ๋ฉ/์ ๋จ ์ฒ๋ฆฌ.Name(), Bar(), Percent(), Status(), MiniBar(), Counter(), Label(), Elapsed(), AvgRate(), ETA(), Text(" | "), Gap(w) ๋ฑ.from braille_progress import Layout, Name, Text, Bar, Percent, Status, MiniBar, Counter, Label
layout = Layout([
Name(w=20), Text(" | "),
Bar(cells=18), Percent(), Text(" "),
Status(w=16), Text(" | "),
MiniBar(cells=10), Counter(), Text(" "),
Label(w=32)
])
p = Progress(layout=layout)
use_alt_screen=True: ๋ฉ์ธ ํฐ๋ฏธ๋๊ณผ ๋ถ๋ฆฌ๋ ๋ฒํผ์ ๋ ๋(์ธ๋ถ ์ถ๋ ฅ ๊ฐ์ญ ์ค์).NO_COLOR=1: ๊ฐ์ ๋ก ๋ฌด์ฑ์.BP_FORCE_TTY=1: ๊ฐ์ ๋ก TTY ๋ชจ๋.BP_FORCE_COLOR=1: ๊ฐ์ ๋ก ์ปฌ๋ฌ ํ์ฑ.p.close() ์ ์คํจ ํ์คํฌ๋ฅผ ์์งํ์ฌ:
error ์์ธ์ ์ปฌ๋ฌ ํธ๋ ์ด์ค๋ฐฑ(ํ์ผ/๋ผ์ธ/ํจ์/์ฝ๋) ์ถ๋ ฅ.print()๊ฐ ํ์ํ๋ฉด ๋ฐ๋์ hijack_stdio()๋ก ๊ฐ์ธ ์ฐ์ธก ๋ก๊ทธ๋ก ๋ณด๋ด๋ผ(๋ ์ด์์ ๊นจ์ง ๋ฐฉ์ง).row_policy="fit"์ ๊ธฐ์กด ์๋จ ์ถ๋ ฅ ๋ณด์กด. ํ์ ์ค์ด ๋๋ฉด ์๋๋ก๋ง ํ์ฅํ๋ค.
row_policy="full"์ ํฐ๋ฏธ๋ ๋์ด๋ฅผ ์ฑ์ฐ๋ฉฐ ํค๋/ํธํฐ์ ํจ๊ป ์คํ
์ด๋ธํ๊ฒ ๊ฐฑ์ ํ๋ค.cols-1 ๋ด๋ก ๊ฐ์ํญ ๊ธฐ์ค ์ ๋จ. ๋ง์ง๋ง ์ค์ ๊ฐํ ์์ด ์ถ๋ ฅํด ์คํฌ๋กค์ ๋ง์ต๋๋ค.loop()์์ VT ์
๋ ฅยท๋ง์ฐ์ค ํ์ฑํ, close()/์ข
๋ฃ ์ ๋ง์ฐ์ค/ํฌ์ปค์ค/๋ธ๋ํท๋ ํ์ด์คํธ ๋ชจ๋ ํด์ (?1006/?1002/?1000/?1015/?1004/?2004), ์ปค์ ๋ณด์ด๊ธฐยทwrap ๋ณต๊ตฌ, ์
๋ ฅ ๋ฒํผ ํ๋ฌ์(Windows FlushConsoleInputBuffer, POSIX tcflush), ALT ์คํฌ๋ฆฐ ์ข
๋ฃ, ์ฝ์ ๋ชจ๋ ์๋ณต.print() ํธ์ถ์ ํ๋ฉด์ ํ๋ญ๋๋ค. p.log(...) ๋๋ p.hijack_stdio(handle) ์ฌ์ฉ์ ๊ถ์ฅ.BP_FORCE_TTY=1 : TTY ๋ชจ๋ ๊ฐ์ BP_FORCE_COLOR=1 : ์ปฌ๋ฌ ๊ฐ์ NO_COLOR=1 : ์ปฌ๋ฌ ๋นํ์ฑํfrom braille_progress import Progress
p = Progress()
h = p.add("upload", total=3)
try:
for i in range(3):
if i == 2: raise RuntimeError("remote closed")
h.advance(1, stage="writing")
except Exception as e:
h.fail(error=e)
p.close()
from braille_progress import Progress, default_layout, ProgressTheme
p = Progress(
layout=default_layout(ProgressTheme.auto_fit()),
row_policy="fit",
max_body_rows=10,
split_ratio=0.6,
show_vsep=True,
use_alt_screen=False
)
# ... ํ์คํฌ/๋ก๊ทธ ์ถ๊ฐ ...
p.loop(); p.close()
from braille_progress import (
Progress, ProgressTheme, TaskHandle, TaskState,
RatioStrategy, DefaultRatio, QueueBinder, progress_message,
Layout, default_layout, RenderContext,
Name, Bar, Percent, Status, MiniBar, Counter, Label, Text, Gap,
Elapsed, AvgRate, ETA, Spacer, Rule, Now, VGap, VLayout,
DetailRenderer, ConsoleRenderer, StaticRenderer
)
FAQs
Braille-based multi progress bars with ANSI colors (docker-compose style)
We found that bprogress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.