Skip to content

neolynx/launchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
André Roth
Jun 22, 2020
560b8b5 · Jun 22, 2020

History

18 Commits
Jul 15, 2019
Jun 22, 2020
Feb 9, 2018
Jun 20, 2016
Feb 9, 2018
Feb 9, 2018
Feb 9, 2018

Repository files navigation

Launchy

from launchy import Launchy
import asyncio

launchy = Launchy("ls -l --color")

loop = asyncio.get_event_loop()
Launchy.attach_loop(loop)

async def main():
    # start subprocess
    await launchy.launch()

    # wait until subprocess exits
    await launchy.wait()

    # terminate
    await Launchy.stop()

loop.run_until_complete(main())