List of used plugins in a project

Solved!
Patrik
Level 2
List of used plugins in a project

Is there a way to get all plugins used in a project using Python api?
For example, a project using custom recipes from a plugin.


Operating system used: Linux

0 Kudos
1 Solution
Patrik
Level 2
Author

For visual solution DSS UI can be used as @HarizoR  recommends:

go to Plugins > Installed > YOUR_PLUGIN > Usages. After clicking on the "Fetch usages"

For Python Api:

import dataiku

client = dataiku.api_client()
plugins = client.list_plugins()

for plugin in plugins:
    plugin_usages = client.get_plugin(plugin['id']).list_usages()
    for usage in plugin_usages.get_raw()['usages']:
        if usage['projectKey'] == "YOUR_PROJECT_KEY":
            pass #DO

View solution in original post

2 Replies
HarizoR
Developer Advocate

Hi Patrik,

There is actually a fully visual solution to your problem: go to Plugins > Installed > YOUR_PLUGIN > Usages. After clicking on the "Fetch usages" button you should be able to see a table of the different plugin components and where they are used.

 

Hope this helps!

Best,

Harizo

Patrik
Level 2
Author

For visual solution DSS UI can be used as @HarizoR  recommends:

go to Plugins > Installed > YOUR_PLUGIN > Usages. After clicking on the "Fetch usages"

For Python Api:

import dataiku

client = dataiku.api_client()
plugins = client.list_plugins()

for plugin in plugins:
    plugin_usages = client.get_plugin(plugin['id']).list_usages()
    for usage in plugin_usages.get_raw()['usages']:
        if usage['projectKey'] == "YOUR_PROJECT_KEY":
            pass #DO

Labels

?

Setup info

?
A banner prompting to get Dataiku