../_images/dragon.jpg

Source: NASA [Ref3]

Dragon Information

This group of API calls will enable the retrieval of Dragon data. ALL Dragon calls can be given a set of parameters, with which to modify the response. Like all functions in this module, the API parameters must be given as a JSON payload such as can be seen here.

All Dragons

dragons = spacexpython.dragons.dragons(parameters,timeOut)
print(dragon)

Parameters:

Name Purpose Mandatory Default
parameters

JSON list of URL qualifiers in the form

{“status”:”active”,”limit”:3 ……etc

N  
timeOut Number of seconds to wait until a timeout N 1

Valid parameters

Specific Dragon

dragon = spacexpython.dragons.one(dragon_id,parameters,timeOut)
print(dragon)

Parameters:

Name Purpose Mandatory Default
dragon_id ID of the dragon capsule Y  
parameters

JSON list of URL qualifiers in the form

{“status”:”active”,”limit”:3 ……etc

N  
timeOut Number of seconds to wait until a timeout N 1

Valid parameters

[Ref3]Source The SpaceX Dragon space freighter approaches the International Space Station as both spacecraft were orbiting 265 miles above the Atlantic Ocean off the west coast of Namibia.