Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/vip_client/utils/vip.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,18 @@ def download_parallel(files):
# Transparent connexion between executor.map() and the caller of download_parallel()
yield from executor.map(download_thread, files)

def generic_get(endpoint)->list:
url = __PREFIX + endpoint
rq = SESSION.get(url, headers=__headers)
manage_errors(rq)
return rq.json()

def generic_put(endpoint,data)->list:
url = __PREFIX + endpoint
rq = SESSION.put(url, headers=__headers, json=data)
manage_errors(rq)
return rq.json()

################################ EXECUTIONS ###################################
# -----------------------------------------------------------------------------
def list_executions()->list:
Expand Down
10 changes: 10 additions & 0 deletions vipapps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This is an admin-level tool to manage VIP apps descriptors.

For commands that communicate with a VIP instance, set these two
environment variables:
- `export VIP_API_URL=...` # VIP-portal host URL (without /rest)
- `export VIP_API_KEY=...` # Your API key (admin level required)

Then see usage with:
`python3 ./vipapps/vipapps.py --help`
or `python3 ./vipapps/vipapps.py <command> --help`
2 changes: 2 additions & 0 deletions vipapps/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
boutiques==0.5.29
requests==2.32.3
Loading