Skip to main content

No project description provided

Project description

PyLaunches

A python packages to get information form upcoming space launches.

Install

python3 -m pip install pylaunches

Example usage

"""Example usage of pylaunches."""
import asyncio

from pylaunches import PyLaunches, PyLaunchesException


async def example():
    """Example usage of pylaunches."""
    async with PyLaunches() as api:
        try:
            launches = await api.upcoming_launches()
            for launch in launches:
                print(launch.name)
        except PyLaunchesException:
            print(":(")


asyncio.get_event_loop().run_until_complete(example())

This package is using the Launch Library 2 API to get the information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylaunches-1.4.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

pylaunches-1.4.0-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page