ipygee.asset#

The asset manager widget code and functionalities.

Attributes#

ICON_STYLE

The style to apply to each object

Classes#

AssetDialog

Initialize the class.

AssetManager

Initialize the class.

CreateFolderDialog

Initialize the class.

DeleteAssetDialog

Initialize the class.

MoveAssetDialog

Initialize the class.

Module Contents#

class ipygee.asset.AssetDialog(asset=None)[source]#

Bases: ipyvuetify.Dialog

Initialize the class.

Parameters:

asset (Optional[ee.Asset])

on_exit(*args)[source]#

Exit without doing anything.

reload(asset)[source]#

Reload the dialog with a new asset.

Parameters:

asset (ee.Asset)

asset: ee.Asset[source]#

The asset to delete

w_card[source]#
w_exit: ipyvuetify.Btn[source]#

The exit button

w_title[source]#
class ipygee.asset.AssetManager[source]#

Bases: ipyvuetify.Flex, ipygee.sidecar.HasSideCar

Initialize the class.

activate_buttons(change)[source]#

Activate the appropriate buttons whenever the selected item changes.

Parameters:

change (dict)

get_items()[source]#

Create the list of items inside a folder.

Return type:

List[ipyvuetify.ListItem]

get_projects()[source]#

Get the list of project accessible from the authenticated user.

Return type:

List

on_copy(*args)[source]#

Copy the selected item to clipboard.

on_delete(*args)[source]#

Delete the selected item.

Ask for confirmation before deleting via a dialog window.

on_item_select(change)[source]#

Act when an item is clicked by the user.

Parameters:

change (dict)

on_move(*args)[source]#

Copy the selected item.

Ask for confirmation before moving via a dialog window.

on_new(*args)[source]#

Create a new folder cia the dialog.

on_reload(*args)[source]#

Reload the current folder.

on_view(*args)[source]#

Open the view dialog.

folder: traitlets.Unicode[source]#

The current folder that the user see

selected_item: traitlets.Unicode[source]#

The selected item of the asset manager

sidecar_title = 'Assets'[source]#

The title of the sidecar

template[source]#
w_asset_dialog: ipyvuetify.Dialog[source]#

The dialog to view an asset

w_card: ipyvuetify.Card[source]#

The card hosting the list of items

w_copy[source]#
w_create_dialog: ipyvuetify.Dialog[source]#

The dialog to create a new folder

w_delete[source]#
w_delete_dialog: ipyvuetify.Dialog[source]#

The dialog to confirm the deletion of an asset

w_list: ipyvuetify.List[source]#

The list of items displayed in the asset manager

w_move[source]#
w_move_dialog: ipyvuetify.Dialog[source]#

The dialog to confirm the move of an asset

w_new: ipyvuetify.Btn[source]#

The new btn on the top of the asset manager

w_reload: ipyvuetify.Btn[source]#

The reload btn at the top of the asset manager

The search button to crowl into the existing items

w_selected: ipyvuetify.TextField[source]#

The field where the user can see the asset Id of the selected item

w_view[source]#
class ipygee.asset.CreateFolderDialog(asset=None)[source]#

Bases: ipyvuetify.Dialog

Initialize the class.

Parameters:

asset (Optional[ee.Asset])

on_cancel(*args)[source]#

Exit without doing anything.

on_confirm(*args)[source]#

Confirm the deletion.

reload(folder)[source]#

Reload the dialog with a new asset.

Parameters:

folder (ee.Asset)

folder: ee.Asset[source]#

The current folder where to create the new folder.

w_asset: ipyvuetify.TextField[source]#

The destination to move

w_cancel: ipyvuetify.Btn[source]#

The cancel button

w_card[source]#
w_confirm: ipyvuetify.Btn[source]#

The confirm button

class ipygee.asset.DeleteAssetDialog(asset=None)[source]#

Bases: ipyvuetify.Dialog

Initialize the class.

Parameters:

asset (Optional[ee.Asset])

on_cancel(*args)[source]#

Exit without doing anything.

on_confirm(*args)[source]#

Confirm the deletion.

reload(asset)[source]#

Reload the dialog with a new asset.

Parameters:

asset (ee.Asset)

asset: ee.Asset[source]#

The asset to delete

ul[source]#
w_cancel: ipyvuetify.Btn[source]#

The cancel button

w_card[source]#
w_confirm: ipyvuetify.Btn[source]#

The confirm button

class ipygee.asset.MoveAssetDialog(asset=None)[source]#

Bases: ipyvuetify.Dialog

Initialize the class.

Parameters:

asset (Optional[ee.Asset])

on_cancel(*args)[source]#

Exit without doing anything.

on_confirm(*args)[source]#

Confirm the deletion.

reload(asset)[source]#

Reload the dialog with a new asset.

Parameters:

asset (ee.Asset)

asset: ee.Asset[source]#

The asset to delete

ul[source]#
w_asset: ipyvuetify.TextField[source]#

The destination to move

w_cancel: ipyvuetify.Btn[source]#

The cancel button

w_card[source]#
w_confirm: ipyvuetify.Btn[source]#

The confirm button

ipygee.asset.ICON_STYLE[source]#

The style to apply to each object