MCPcopy
hub / github.com/Textualize/rich / open

Function open

rich/progress.py:372–393  ·  view source on GitHub ↗
(
    file: Union[str, "PathLike[str]", bytes],
    mode: Union[Literal["rt"], Literal["r"]],
    buffering: int = -1,
    encoding: Optional[str] = None,
    errors: Optional[str] = None,
    newline: Optional[str] = None,
    *,
    total: Optional[int] = None,
    description: str = "Reading...",
    auto_refresh: bool = True,
    console: Optional[Console] = None,
    transient: bool = False,
    get_time: Optional[Callable[[], float]] = None,
    refresh_per_second: float = 10,
    style: StyleType = "bar.back",
    complete_style: StyleType = "bar.complete",
    finished_style: StyleType = "bar.finished",
    pulse_style: StyleType = "bar.pulse",
    disable: bool = False,
)

Source from the content-addressed store, hash-verified

370
371@typing.overload
372def open(
373 file: Union[str, "PathLike[str]", bytes],
374 mode: Union[Literal["rt"], Literal["r"]],
375 buffering: int = -1,
376 encoding: Optional[str] = None,
377 errors: Optional[str] = None,
378 newline: Optional[str] = None,
379 *,
380 total: Optional[int] = None,
381 description: str = "Reading...",
382 auto_refresh: bool = True,
383 console: Optional[Console] = None,
384 transient: bool = False,
385 get_time: Optional[Callable[[], float]] = None,
386 refresh_per_second: float = 10,
387 style: StyleType = "bar.back",
388 complete_style: StyleType = "bar.complete",
389 finished_style: StyleType = "bar.finished",
390 pulse_style: StyleType = "bar.pulse",
391 disable: bool = False,
392) -> ContextManager[TextIO]:
393 pass
394
395
396@typing.overload

Callers 15

make_emoji.pyFile · 0.85
profile_pretty.pyFile · 0.85
test_card.pyFile · 0.85
test_readFunction · 0.85
test_save_svgFunction · 0.85
test_save_textFunction · 0.85
test_save_htmlFunction · 0.85
test_wrap_fileFunction · 0.85
export.pyFile · 0.85
copy_urlFunction · 0.85

Calls 8

openMethod · 0.95
TextColumnClass · 0.85
BarColumnClass · 0.85
DownloadColumnClass · 0.85
TimeRemainingColumnClass · 0.85
ProgressClass · 0.85
_ReadContextClass · 0.85
extendMethod · 0.45

Tested by 6

test_readFunction · 0.68
test_save_svgFunction · 0.68
test_save_textFunction · 0.68
test_save_htmlFunction · 0.68
test_wrap_fileFunction · 0.68