Capsule Information¶
This group of API calls will enable the retrieval of capsule data. ALL capsule 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 Capsules¶
capsules = spacexpython.capsules.capsules(parameters,timeOut)
print(capsule)
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 |
Specific Capsule¶
capsule = spacexpython.capsules.one(capsule_id,parameters,timeOut)
print(capsule)
Parameters:
Name | Purpose | Mandatory | Default |
---|---|---|---|
capsule_id | ID of the 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 |
Upcoming Capsules¶
upcoming_capsules = spacexpython.capsules.upcoming(parameters,timeOut)
print(upcoming_capsules)
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 |
Past Capsules¶
past_capsules = spacexpython.capsules.past(parameters,timeOut)
print(past_capsules)
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 |
[Ref1] | iss058e027464 (March 4, 2019) — The uncrewed SpaceX Crew Dragon spacecraft is the first Commercial Crew vehicle to visit the International Space Station. Here it is pictured with its nose cone open revealing its docking mechanism while approaching the station’s Harmony module. The Crew Dragon would automatically dock moments later to the international docking adapter attached to the forward end of Harmony. |