Skip to content

wilc0n/SpaceX-PY

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python wrapper for the SpaceX API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%