aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscator/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'obfuscator/utils.py')
-rw-r--r--obfuscator/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/obfuscator/utils.py b/obfuscator/utils.py
new file mode 100644
index 0000000..f0174f8
--- /dev/null
+++ b/obfuscator/utils.py
@@ -0,0 +1,8 @@
+# Utility functions
+
+
+def get_s3_path(uri):
+ parts = uri.replace("s3://", "").split("/")
+ bucket = parts.pop(0)
+ key = "/".join(parts)
+ return bucket, key
git.ajschof.me — hosted by ajschofield — powered by cgit