List of used plugins in a project

Patrik
Patrik Registered Posts: 5 ✭✭✭✭

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

Tagged:

Best Answer

  • Patrik
    Patrik Registered Posts: 5 ✭✭✭✭
    Answer ✓

    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

Answers

  • HarizoR
    HarizoR Dataiker, Alpha Tester, Registered Posts: 138 Dataiker

    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

Setup Info
    Tags
      Help me…