Skip to content

Improve micromamba search output #1965

@jonashaag

Description

@jonashaag
$ micromamba search boost

 Name  Version Build           Channel
─────────────────────────────────────────────────────
 boost 1.80.0  py39h70e7ac2_1  conda-forge/osx-arm64
 boost 1.80.0  py39h4aae847_0  conda-forge/osx-arm64
 boost 1.80.0  py38hd516fed_1  conda-forge/osx-arm64
 boost 1.80.0  py38h62d72d6_0  conda-forge/osx-arm64
 boost 1.80.0  py310h629746b_1 conda-forge/osx-arm64
 boost 1.80.0  py310h126e5b1_0 conda-forge/osx-arm64
 boost 1.78.0  py39h2550fe3_0  conda-forge/osx-arm64
 boost 1.78.0  py38hfb399f3_0  conda-forge/osx-arm64
 boost 1.78.0  py310h4566fd1_0 conda-forge/osx-arm64
 ...
 boost 1.74.0  py39h776e71f_5  conda-forge/osx-arm64
 boost 1.74.0  py39h776e71f_4  conda-forge/osx-arm64
 boost 1.74.0  py39h6f7cd10_3  conda-forge/osx-arm64
 boost 1.74.0  py39h6f7cd10_2  conda-forge/osx-arm64
 boost 1.74.0  py38h3578e97_3  conda-forge/osx-arm64
 boost 1.74.0  py38h3578e97_2  conda-forge/osx-arm64
 boost 1.74.0  py38h1e2c3d9_5  conda-forge/osx-arm64
 boost 1.74.0  py38h1e2c3d9_4  conda-forge/osx-arm64
 boost 1.74.0  py310hd0bb7a8_5 conda-forge/osx-arm64
 boost 1.74.0  py310hd0bb7a8_4 conda-forge/osx-arm64

Problems/potential improvements:

  • Latest version is on the top => likely out of terminal view.
  • Hard to see what are the available versions vs. the available build strings.
  • Build strings seem to be not ordered lexically.
  • Build strings are not easily parsed by the human eye, eg. py38 could be "for Python 3.8".

Idea:

 Name  Version Build           Channel
─────────────────────────────────────────────────────
 boost 1.74.0  py310hd0bb7a8_5 conda-forge/osx-arm64
               py310hd0bb7a8_4
 ...
 boost 1.80.0  py38hd516fed_1  conda-forge/osx-arm64
               py39h70e7ac2_1
               py39h4aae847_0

Or even:

 Name  Version  Python  Build           Channel
─────────────────────────────────────────────────────
 boost 1.74.0   3.10    py310hd0bb7a8_5 conda-forge/osx-arm64
                3.10    py310hd0bb7a8_4
 ...
 boost 1.80.0   3.8     py38hd516fed_1  conda-forge/osx-arm64
                3.9     py39h70e7ac2_1
                3.9     py39h4aae847_0

For wildcard searches:

$ micromamba search '*boost*'

 Name              Version Build               Channel
─────────────────────────────────────────────────────────────────────
 _py-xgboost-mutex 2.0     cpu_0               conda-forge/osx-arm64
 _r-xgboost-mutex  2.0     cpu_0               conda-forge/osx-arm64
 boost             1.80.0  py39h4aae847_0      conda-forge/osx-arm64
 ...
 boost-cpp         1.80.0  h04f872d_0          conda-forge/osx-arm64
 ...
 xgboost           1.5.0   py38hd68009d_0      conda-forge/osx-arm64
  • Most likely package ("boost") not listed top/bottom.
  • No color highlighting.

If anyone else has ideas, feel free :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog (random order)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions