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
Stand-alone interface to capture planet lab credentials.
Empty credentials fields and restart activation mode.
Set the initial method to connect to planet lab.
Initialize planet client and validate if is active.
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.set_initial_method()[source]#
Set the initial method to connect to planet lab.
- Return type:
None