pysepal.planetapi.planet_view.PlanetView#
- class pysepal.planetapi.planet_view.PlanetView(*args, **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
alertAlert component to display end-user action results
btnButton to trigger the validation process in the associated model
infoeither to display or not a detailed description about the planet subscriptions
planet_modelBackend model to manipulate interface actions
w_keyWidget to set credential API key
w_methodDropdown widget to select connection method
w_passwordWidget to set credential password
w_usernameWidget 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