Payloads#

Desc here

Todo

  • Implement endpoints enums and replace references here

Apod#

class nasa.RawAstronomyPicture[source]#

Bases: TypedDict

Represents a received payload from the APOD endpoint.

New in version 0.0.1.

copyright#

The copyright of the linked file.

Type:

Optional[str]

date#

The date back when the file was the astronomy picture of the day.

Type:

str

explanation#

A short description about the file.

Type:

str

hdurl#

The high quality url to the file.

Type:

Optional[str]

media_type#

The type of media of the file. This can be either "image" or "video".

Type:

str

service_version#

The version of the api.

Type:

str

title#

The title of the file.

Type:

str

url#

The url to the file.

Type:

str

EPIC#

class nasa.RawEpicImage[source]#

Bases: TypedDict

Represents an EPIC object returned by the NASA Api.

New in version 0.0.1.

identifier#

The identifier linked to the returned EPIC object.

Type:

str

image#

The image name of the photo shooted by the satellite.

Type:

str

date#

The date of the image.

Type:

str

caption#

The caption of the image.

Type:

str

centroid_coordinates#

Geographical coordinates that the satellite is looking at.

Type:

RawEarthLikeCoordinates

dscovr_j2000_position#

Position of the satellite in space.

Type:

RawSpatialCoordinates

lunar_j2000_position#

Position of the moon in space.

Type:

RawSpatialCoordinates

sun_j2000_position#

Position of the sun in space.

Type:

RawSpatialCoordinates

attitude_quaternions#

Satellite attitude.

Type:

RawAttitudeQ

coords#

Coordinates linked to the postion of the satellite.

Type:

EpicCoordinates

version#

The Api version.

Type:

int

class nasa.RawSpatialCoordinates[source]#

Bases: TypedDict

Represents a SpatialCoordinates raw payload.

New in version 0.0.1.

x#
Type:

float

y#
Type:

float

z#
Type:

float

class nasa.RawEarthLikeCoordinates[source]#

Bases: TypedDict

Represents a EarthLikeCoordinates raw payload.

New in version 0.0.1.

lat#

Represents the latitude.

Type:

float

lon#

Represents the longitude.

Type:

float

class nasa.RawAttitudeQ[source]#

Bases: TypedDict

Rpresents a AttitudeQuaternions raw payload.

New in version 0.0.1.

q0#
Type:

float

q1#
Type:

float

q2#
Type:

float

q3#
Type:

float

class nasa.EpicCoordinates[source]#

Bases: TypedDict

Represents a Coordinates raw payload.

New in version 0.0.1.

centroid_coordinates#

Geographical coordinates that the satellite is looking at.

Type:

RawEarthLikeCoordinates

dscovr_j2000_position#

Position of the satellite in space.

Type:

RawSpatialCoordinates

lunar_j2000_position#

Position of the moon in space.

Type:

RawSpatialCoordinates

sun_j2000_position#

Position of the sun in space.

Type:

RawSpatialCoordinates

attitude_quaternions#

Satellite attitude.

Type:

RawAttitudeQ