Skip to main content

Python wrapper for the SpaceX API

Project description

Build Status GitHub issues GitHub license GitHub stars


Python wrapper for the SpaceX API


pip install spacex-py


This wrapper matches the SpaceX API so its pretty easy to use. Lets go through some examples;

from spacex_py import launches

# Returns a tuple
got_launches, header = launches.get_launches()

# PyLint being a pain about header? use:
got_launches, _ = launches.get_launches()

# Prints list: of launches

Okay well, lets get launches using a query;

from spacex_py import launches

got_launches, _ = launches.get_launches(site_id="ksc_lc_39a")

# Prints the launhces for the given site

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

spacex_py-1.0.0.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

spacex_py-1.0.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page