Python wrapper for the SpaceX API
Project description
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 | RSS feed
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)
Built Distribution
Close
Hashes for spacex_py-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c630aa6bd88789b5b6a10800dcc8296b1f3c748a13a97c15c9474d3f3be3be4 |
|
MD5 | 68de7f7f298f034ef38b2df3598c678e |
|
BLAKE2b-256 | 5930b23444d2c67526ea76d63656fdf8e312de931ce2e814b2b980c2ff362386 |