Skip to content

Instantly share code, notes, and snippets.

@henchc
Created July 14, 2019 20:59
Show Gist options
  • Save henchc/935d8c989309dce743eb27e378c5b5f6 to your computer and use it in GitHub Desktop.
Save henchc/935d8c989309dce743eb27e378c5b5f6 to your computer and use it in GitHub Desktop.
url_helm_chart = 'https://raw.githubusercontent.com/jupyterhub/helm-chart/gh-pages/index.yaml'
helm_chart_yaml = load(requests.get(url_helm_chart).text)
# sort by date created
updates_sorted = sorted(helm_chart_yaml['entries']['binderhub'], key=lambda k: k['created'])
bh_master = updates_sorted[-1]['version'].split('-')[-1]
print(bh_master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment