Get latest launch:
launch_data = spacexpython.launches.latest()
print(launch_data)
Get the next Launch:
launch_data = spacexpython.launches.next()
print(launch_data)
Get all upcoming launches:
launch_data = spacexpython.launches.upcoming()
print(launch_data)
Get all upcoming and past launches:
launch_data = spacexpython.launches.launches()
print(launch_data)