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 details)
Built Distribution
File details
Details for the file spacex_py-1.0.0.tar.gz
.
File metadata
- Download URL: spacex_py-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2afe7b9e7705c63ede1e28d0048ea97609c59ecdacffa8ac13c45a7429db2adb |
|
MD5 | a94e2cb00a73ca812d56fc45dc89f3ed |
|
BLAKE2b-256 | 9c4682f7a781693e8a93565e055e3de73184706f003ea56cee14fbf6d0bce439 |
File details
Details for the file spacex_py-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: spacex_py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c630aa6bd88789b5b6a10800dcc8296b1f3c748a13a97c15c9474d3f3be3be4 |
|
MD5 | 68de7f7f298f034ef38b2df3598c678e |
|
BLAKE2b-256 | 5930b23444d2c67526ea76d63656fdf8e312de931ce2e814b2b980c2ff362386 |