Created
July 8, 2016 01:50
-
-
Save mwcraig/8473cf840f6d29236d6d8af699404555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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