sepal_ui.planetapi.planet_view.PlanetView#

class sepal_ui.planetapi.planet_view.PlanetView(**kwargs)[source]#

Stand-alone interface to capture planet lab credentials.

It also validate its subscription and connect to the client from_file in the model.

Parameters:
  • btn (sw.Btn, optional) – Button to trigger the validation process in the associated model.

  • alert (sw.Alert, v.Alert, optional) – Alert component to display end-user action results.

  • planet_model (sepal_ui.planetlab.PlanetModel) – backend model to manipulate interface actions.

  • info (bool)

Attributes

alert

Alert component to display end-user action results

btn

Button to trigger the validation process in the associated model

info

either to display or not a detailed description about the planet subscriptions

planet_model

Backend model to manipulate interface actions

w_key

Widget to set credential API key

w_method

Dropdown widget to select connection method

w_password

Widget to set credential password

w_username

Widget to set credential username

Methods

__init__

Stand-alone interface to capture planet lab credentials.

reset

Empty credentials fields and restart activation mode.

set_initial_method

Set the initial method to connect to planet lab.

validate

Initialize planet client and validate if is active.

validate_secret_file

Validate the secret file path.

PlanetView.__init__(btn=None, alert=None, planet_model=None, info=False, **kwargs)[source]#

Stand-alone interface to capture planet lab credentials.

It also validate its subscription and connect to the client from_file in the model.

Parameters:
  • btn (sw.Btn, optional) – Button to trigger the validation process in the associated model.

  • alert (sw.Alert, v.Alert, optional) – Alert component to display end-user action results.

  • planet_model (sepal_ui.planetlab.PlanetModel) – backend model to manipulate interface actions.

  • info (bool)

PlanetView.reset()[source]#

Empty credentials fields and restart activation mode.

Return type:

None

PlanetView.set_initial_method()[source]#

Set the initial method to connect to planet lab.

Return type:

None

PlanetView.validate(*args)[source]#

Initialize planet client and validate if is active.

Return type:

None

PlanetView.validate_secret_file()[source]#

Validate the secret file path.

Return type:

None