Skip to content

Instantly share code, notes, and snippets.

Created Oct 23, 2012
What would you like to do?
install cloudfiles
modname = 'cloudfiles'
base_url = ''
files = ['', '', '', '',
'', '', '', '',
import os
import requests
print 'Creating module directory:', modname
if not os.path.isdir(modname):
for filename in files:
print 'Downloading', filename
url = base_url + filename
r = requests.get(url)
dest = os.path.join(modname, filename)
with open(dest, 'w') as f:
print 'Done.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment