jinks_widgets.space

This file contains the space launches widget class.

Functions

get_space_launches()

Get all the upcoming spaces launches data from API.

Classes

SpaceLaunch(name, date)

SpaceLaunches()

Class defining the Space Launches widget which shows the upcoming space launch, with defined filters.

class jinks_widgets.space.SpaceLaunch(name, date)

Bases: object

__init__(name, date)
name: str
date: datetime
static from_dict(data)

Get all space launches from request JSON dict.

Return type:

list[SpaceLaunch]

jinks_widgets.space.get_space_launches()

Get all the upcoming spaces launches data from API.

Return type:

list[SpaceLaunch]

class jinks_widgets.space.SpaceLaunches

Bases: object

Class defining the Space Launches widget which shows the upcoming space launch, with defined filters.

width: int = 6
height: int = 3
color = 'BWG'
font_sizes = {40: 30}
static data()

Get the next launches data.

Return type:

list[SpaceLaunch]

classmethod display(density, widget_data, filter_out=None, filter_in=None)

Get the next singe space launch image.

Return type:

Image