没有项目描述
pylaunches的Python项目详细描述
Pylaunches
a python包,用于从即将进行的空间发射中获取信息。
安装
pip install pylaunches
示例用法
"""Example usage of pylaunches."""importasyncioimportaiohttpfrompylaunches.apiimportLaunchesasyncdeftest_pylaunches():"""Example usage of pylaunches."""custom_session=aiohttp.ClientSession()data=Launches(LOOP,custom_session)awaitdata.get_launches()print("Launches:",data.launches)LOOP=asyncio.get_event_loop()LOOP.run_until_complete(test_pylaunches())
这个包使用launchlibrary.net API获取信息。