Skip to content

package

Module to interact with Packages.

This module contains class to interact with Packages in Apps.

PublishedPackage

Bases: PublishedContentNode

PublishedPackage object to interact with package specific apps endpoints.

id class-attribute

id: str

key class-attribute

key: str

space_id class-attribute

space_id: str

sync

sync()

Syncs package properties with EMS.

get_content_node

get_content_node(id_)

Gets published content node located in package with given id.

Parameters:

  • id_ (str) –

    Id of published content node.

Returns:

Raises:

get_content_nodes

get_content_nodes(asset_type=None, node_type=None)

Gets all published content nodes of given package.

Returns:

get_analysis

get_analysis(id_)

Gets analysis of given package.

Parameters:

  • id_ (str) –

    Id of analysis.

Returns:

get_analyses

get_analyses()

Gets all analyses of given package.

Returns:

get_folder

get_folder(id_)

Get folder of given package.

Parameters:

  • id_ (str) –

    Id of folder.

Returns:

get_folders

get_folders()

Get all folders of given package.

Returns:

get_simulation

get_simulation(id_)

Gets simulation of given package.

Parameters:

  • id_ (str) –

    Id of simulation.

Returns:

get_simulations

get_simulations()

Gets all simulations of given package.

Returns:

get_view

get_view(id_)

Gets view of given package.

Parameters:

  • id_ (str) –

    Id of view.

Returns:

get_views

get_views()

Gets all views of given package.

Returns: