Skip to content

Enhancement Add CLI commands for browsing and searching OpenML flows (models) #1486

@Jitmisra

Description

@Jitmisra

Description

Currently, users can only browse and search OpenML flows (models) through the Python API...... This requires writing Python code even for simple tasks like listing available models or searching for a specific model.... adding cli commands would significantly improve the user experience and make the model catalogue more accessible.

Proposed Solution

Add three new CLI subcommands under openml models:

  1. openml models list - List flows with filtering options (tag, uploader, pagination)
  2. openml models info <flow_id> - Display detailed information about a specific flow
  3. openml models search <query> - Search flows by name

Expected Results

Users should be able to:

  • Browse available models from the command line without writing Python code
  • Search for models by name
  • Get detailed information about specific models
  • Filter models by tags, uploader etc.......

Use Cases

List first 10 models

openml models list --size 10

Search for RandomForest models

openml models search RandomForest

Get detailed info about a model

openml models info 12345

List models with a specific tag

openml models list --tag sklearn#### Additional Context

This would complement the existing openml configure CLI command and improve accessibility of the OpenML model catalogue. The implementation would use existing openml.flows.list_flows() and openml.flows.get_flow() functions, so no changes to core API are needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions