pexes='[
          {"name":"messaging", "version":"2.8.2rc1"},
          {"name":"schema", "version":"2.8.2rc1"},
          {"name":"workspaces", "version":"2.8.2rc1"},
          {"name":"carta_envoy", "version":"2.8.2rc1"},
          {"name":"casa_envoy", "version":"2.8.2rc1"},
          {"name":"conveyor", "version":"2.8.2rc1"},
          {"name":"deliver", "version":"2.8.2rc1"},
          {"name":"ingest", "version":"2.8.2rc1"},
          {"name":"ingest_envoy", "version":"2.8.2rc1"},
          {"name":"mediator", "version":"2.8.2rc1"},
          {"name":"null", "version":"2.8.2rc1"},
          {"name":"productfetcher", "version":"2.8.2rc1"},
          {"name":"update_stage", "version":"2.8.2rc1"},
          {"name":"vela", "version":"2.8.2rc1"},
          {"name":"wf_inspector", "version":"2.8.2rc1"},
          {"name":"ws_annihilator", "version":"2.8.2rc1"},
          {"name":"ws_metrics", "version":"2.8.2rc1"}
        ]'

for row in $(echo "${pexes}" | jq -r '.[] | @base64'); do
    _jq() {
     echo ${row} | base64 --decode | jq -r ${1}
    }
   curl --header "PRIVATE-TOKEN: glpat-vPamXXk4PZPe8GQAzmY2" "https://gitlab.nrao.edu/api/v4/projects/621/packages/generic/$(_jq '.name')/$(_jq '.version')/$(_jq '.name')-$(_jq '.version')-py3-none-any.whl" --output "$(_jq '.name')-$(_jq '.version')-py3-none-any.whl"
   pip3 install "$(_jq '.name')-$(_jq '.version')-py3-none-any.whl"
done