Skip to content

Possible to get upload time metadata from anaconda-client? #682

@matthewfeickert

Description

@matthewfeickert

Hi. 👋 In scientific-python/upload-nightly-action#31 we're interested in being able to selectively remove packages (on a channel for nightly wheel uploads) if they cross a threshold of time since they have been uploaded without being cleaned up by any of our other checks. At the moment I don't think this is possible with anaconda-client as anaconda show gives successive information at the USER[/PACKAGE[/VERSION[/FILE]]] level

(base) mambauser@39161fd29268:/tmp$ micromamba list anaconda-client
List of packages in environment: "/opt/conda"

  Name             Version  Build         Channel    
───────────────────────────────────────────────────────
  anaconda-client  1.12.0   pyhd8ed1ab_1  conda-forge
(base) mambauser@39161fd29268:/tmp$ anaconda show --help
usage: anaconda show [-h] spec

Show information about an object

positional arguments:
  spec        Package written as USER[/PACKAGE[/VERSION[/FILE]]]

options:
  -h, --help  show this help message and exit

Show information about an object

Examples:

    anaconda show continuumio
    anaconda show continuumio/python
    anaconda show continuumio/python/2.7.5
    anaconda show sean/meta/1.2.0/meta.tar.gz
(base) mambauser@39161fd29268:/tmp$ anaconda show "scientific-python-nightly-wheels/ipython/8.13.2"
Using Anaconda API: https://api.anaconda.org
version 8.13.2
   + ipython-8.13.2-py3-none-any.whl
None
(base) mambauser@39161fd29268:/tmp$ 

Can one easily get upload datetime metadata for packages on Anaconda Cloud with an existing API? If so, would it be possible to have this metadata be accessible through anconda-client's CLI API? Or is this out of scope?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions