testsolv is an awesome tool to get package dependency solving even ihn shell scripts like openSUSE/microos-tools#28
Programmatically using it's output is a bit annoying though. How about adding json output so processing results becomes easy even in shell using eg. jq?