Skip to main content

An unofficial python3 SpaceX API wrapper

Project description

PySpaceX


Easily access SpaceX's API

pySpaceX is an open-source API wrapper to make it easier to access data from the unofficial v4 SpaceX API

GitHub all releases GitHub release (latest by date)

Docs · Report a bug · PyPi


Installation

To install you can simply install the package by using: python3 -m pip install pySpaceX

The code can also be directly downloaded from the latest release:

https://github.com/TwoSails/pySpaceX/releases

Usage

To get started with using this wrapper we need to start with the creation of an api instance:

from pySpaceX import Space

api = Space()

To get information about the API use:

info = api.get_info()  # Returns the info object

print(info.company())  # Returns data about the SpaceX company

You can also get information about a dragon capsule by using:

dragon = api.get_dragon()  # Returns the dragon object

print(dragon.one_dragon('5e9d058859b1ffd8e2ad5f90'))

Documentation

Available at https://pypi.org/project/pySpaceX

Contributing

Feel free to contribute by opening an issue or a pull request.

Any help is greatly appreciated.

All contributors will be listed on this repository.

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

pySpaceX-1.2.2.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

pySpaceX-1.2.2-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file pySpaceX-1.2.2.tar.gz.

File metadata

  • Download URL: pySpaceX-1.2.2.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pySpaceX-1.2.2.tar.gz
Algorithm Hash digest
SHA256 717bbf9c5fdd7e15ae3e559231b61e90c242ed8ac373a377288810fb849ede3b
MD5 1a0aa53bc91445bdef85b60f79444559
BLAKE2b-256 5990b4b0f613b29464d47a3ad208bb1856bae9db2b15559503f01a5d40c19651

See more details on using hashes here.

File details

Details for the file pySpaceX-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: pySpaceX-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pySpaceX-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e473ccafba48193f50e9eef888bd72edeeab8d11fbf624c51866186b2158183
MD5 3e1887165482bf8f78e2a244e461c712
BLAKE2b-256 ae0610f4521a555e2167d52cb0b215066804ed125cb4432a895321c15cd99ece

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page