A python packages to get information form upcoming space launches.
pip install pylaunches
"""Example usage of pylaunches."""
import asyncio
import aiohttp
from pylaunches.api import Launches
async def test_pylaunches():
"""Example usage of pylaunches."""
custom_session = aiohttp.ClientSession()
data = Launches(LOOP, custom_session)
await data.get_launches()
print("Launches:", data.launches)
LOOP = asyncio.get_event_loop()
LOOP.run_until_complete(test_pylaunches())
This package is using the launchlibrary.net API to get the information.