Add basics of Glacier.
This commit is contained in:
parent
7156df1a63
commit
625b1d2ac6
7 changed files with 297 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue