MCPcopy
hub / github.com/p-e-w/heretic / prompt_password

Function prompt_password

src/heretic/utils.py:155–160  ·  view source on GitHub ↗
(message: str)

Source from the content-addressed store, hash-verified

153
154
155def prompt_password(message: str) -> str:
156 if is_notebook():
157 print()
158 return getpass.getpass(message)
159 else:
160 return questionary.password(message).ask()
161
162
163def format_duration(seconds: float) -> str:

Callers 1

runFunction · 0.85

Calls 1

is_notebookFunction · 0.85

Tested by

no test coverage detected