Add basics of Glacier.

This commit is contained in:
Steve Pulec 2015-06-05 19:36:43 -04:00
commit 625b1d2ac6
7 changed files with 297 additions and 3 deletions

View file

@ -1,3 +1,6 @@
import random
import string
from six.moves.urllib.parse import urlparse
@ -12,3 +15,7 @@ def region_from_glacier_url(url):
def vault_from_glacier_url(full_url):
return full_url.split("/")[-1]
def get_job_id():
return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(92))