Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on June 21, 2022 5:54PM
Likes: 0
Replies: 2
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
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
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