Skip to main content

Python wrapper for the SpaceX API

Project description

Build Status GitHub issues GitHub license GitHub stars

SpaceX-PY

Python wrapper for the SpaceX API

Install

pip install spacex-py

Usage

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()

print(got_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")

print(got_launches)
# Prints the launhces for the given site

Project details


Release history Release notifications

This version

1.0.0

Download files

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

Files for spacex-py, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size spacex_py-1.0.0-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size spacex_py-1.0.0.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page