Title here
Summary here
A IO Function is a reusable function designed to perform a specific task or operation related to IO.
input_async(prompt: str)
Enables asynchronous input collection from the user.
prompt (str)
: An optional message to display to the user, describing the type of input expected.str
representing the user’s input.
user_input = await input_async("Enter your name: ")
print(f"Your name is {user_input}")
notification(message: str)
Show a notification to the user.
message (str)
: The notification text to display.
user_input = await input_async("Enter your name: ")
notification(f"Your name is {user_input}")
progress(value: str)
Show a progress bar.
value (str)
: A string number between "0"
and "1"
, or None
for indeterminate progress. ""
to close bar.
import asyncio
for i in range(1,100):
progress(str(i/100))
await asyncio.sleep(0.05)
progress("")