Skip to content

Instantly share code, notes, and snippets.

@mwcraig
Created July 8, 2016 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwcraig/8473cf840f6d29236d6d8af699404555 to your computer and use it in GitHub Desktop.
Save mwcraig/8473cf840f6d29236d6d8af699404555 to your computer and use it in GitHub Desktop.
from binstar_client.utils import get_server_api
cli = get_server_api()
all_the_stuff = cli.show_channel('main', 'astropy')['files']
for a in all_the_stuff:
print(a['full_name'])
o, p, v, f = a['full_name'].split('/', 3)
try:
cli.copy(o, p, v, basename=f, to_owner='openastronomy')
print('Success!', ' =======> ', o, p, v, f)
except Exception as e:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment