Skip to content

Instantly share code, notes, and snippets.

Hank youyaochi

Block or report user

Report or block youyaochi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@youyaochi
youyaochi / async_subprocess.py
Last active Sep 13, 2017
Python asyncio subprocess
View async_subprocess.py
# *nix + python 3.6
import asyncio
import subprocess
async def _run(cmd, **kwargs):
process = await asyncio.create_subprocess_shell(
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
**kwargs)
You can’t perform that action at this time.