con / duct

A helper to run a command, capture stdout/stderr and details about running
https://pypi.org/project/con-duct/
MIT License
3 stars 2 forks source link

`con-duct inspect` #173

Open asmacdo opened 2 months ago

asmacdo commented 2 months ago

I have data from an execution, and I have questions that I'd like to answer easily.

Heres what im thinking

con-duct info_filepath \
     --processes #  return the number of unique processes 
     --max-processes  #  max number of processes running concurrently
yarikoptic commented 2 months ago

sorry -- what are you asking for , just general information from current instance, i.e. pretty much what would be stored in _info.json file? then I would vote for dump-info command. Potentially with some --format option if specific ones desired, and no jq in vicinity.

Note: I think we better use - within command name in CLI but underlying function sure thing would have _. Otherwise CLI would feel odd with _s in commands.

asmacdo commented 2 months ago

I was thinking this would be how to see any values that need to be calculated.

For example the total number of processes or the maximum number of simultaneous processes require reading over the entire usage.json

yarikoptic commented 2 months ago

so the summary record of some kind out of collected stats -- cool. Again IMHO better to make it collect the record and provide capability to output as json (or may be even yaml) with some alternative rendering/filtering. Not unlike what we do in e.g. dandi-cli via pyout -- producing/updating display of records.

asmacdo commented 2 months ago

This feature isn't intended to replace that one, which currently is going to be called 'pretty print'