Welcome to aioshell’s documentation!

Run shell and SSH commands concurrently inside Python code with few keystrokes and the new powerful Python’s asyncio module (since version 3.4). Quick example:

from aioshell import Executor, Shell
exe = Executor()
exe.add(Shell('date >/tmp/aioshell; sleep 1'))
exe.add(Shell('sleep 1; date >>/tmp/aioshell'))
exe.finish()
# Check /tmp/aioshell file to see that only 1 sec has passed.

Contents:

Indices and tables