rbx 3.18.2.dev154__tar.gz → 3.18.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rbx-3.18.2.dev154 → rbx-3.18.3}/PKG-INFO +1 -1
- {rbx-3.18.2.dev154 → rbx-3.18.3}/pyproject.toml +2 -2
- rbx-3.18.3/rbx/__init__.py +1 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/gcp/storage.py +6 -3
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx.egg-info/PKG-INFO +1 -1
- rbx-3.18.2.dev154/rbx/__init__.py +0 -1
- {rbx-3.18.2.dev154 → rbx-3.18.3}/LICENSE +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/README.md +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/auth/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/auth/decorators.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/auth/keystore.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/auth/mock.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/aws/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/aws/s3.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/buildtools/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/buildtools/cli.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/buildtools/tasks/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/buildtools/tasks/apprunner.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/buildtools/tasks/ec2.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/buildtools/tasks/image.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/buildtools/tasks/misc.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/clients/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/clients/adsquare.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/clients/broadsign.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/clients/oxr.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/clients/panels.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/clients/reporting.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/clients/retry.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/exceptions.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/gcp/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/gcp/cloud_tasks.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/gcp/pubsub.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/logging.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/settings.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/toolkit/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/toolkit/browser.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/toolkit/cli.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/toolkit/exporter.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/toolkit/media.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/toolkit/utils.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/toolkit/web.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/utils/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/utils/mdm.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/utils/vast.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/web/__init__.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx/web/handlers.py +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx.egg-info/SOURCES.txt +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx.egg-info/dependency_links.txt +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx.egg-info/entry_points.txt +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx.egg-info/requires.txt +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/rbx.egg-info/top_level.txt +0 -0
- {rbx-3.18.2.dev154 → rbx-3.18.3}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "rbx"
|
|
7
|
-
version = "3.18.
|
|
7
|
+
version = "3.18.3"
|
|
8
8
|
description = "A collection of common tools for Scoota services."
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "The Scoota Engineering Team", email = "engineering@scoota.com" }
|
|
@@ -91,7 +91,7 @@ homepage = "https://github.com/rockabox/rbx"
|
|
|
91
91
|
repository = "https://github.com/rockabox/rbx.git"
|
|
92
92
|
|
|
93
93
|
[tool.bumpversion]
|
|
94
|
-
current_version = "3.18.
|
|
94
|
+
current_version = "3.18.3"
|
|
95
95
|
commit = true
|
|
96
96
|
parse = """
|
|
97
97
|
(?P<major>\\d+)\\.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.18.3"
|
|
@@ -8,7 +8,7 @@ logger = logging.getLogger(__name__)
|
|
|
8
8
|
class Storage:
|
|
9
9
|
"""Provides functionality to upload/download content to/from GCS."""
|
|
10
10
|
|
|
11
|
-
def __init__(self, project_id, bucket=None):
|
|
11
|
+
def __init__(self, project_id=None, bucket=None):
|
|
12
12
|
self.client = Client()
|
|
13
13
|
self.bucket = self.client.get_bucket(bucket or f"{project_id}.appspot.com")
|
|
14
14
|
|
|
@@ -19,12 +19,15 @@ class Storage:
|
|
|
19
19
|
new_blob.make_public()
|
|
20
20
|
return new_blob
|
|
21
21
|
|
|
22
|
-
def download(self, location):
|
|
22
|
+
def download(self, location, raw=False):
|
|
23
23
|
blob = self.bucket.blob(location)
|
|
24
24
|
if blob.exists():
|
|
25
25
|
logger.debug(f'Downloading from storage: "{blob.name}"')
|
|
26
26
|
content = blob.download_as_string()
|
|
27
|
-
|
|
27
|
+
if raw:
|
|
28
|
+
return content
|
|
29
|
+
else:
|
|
30
|
+
return content.decode("utf-8")
|
|
28
31
|
|
|
29
32
|
def list_objects(self, prefix=None):
|
|
30
33
|
"""Return an iterator of all objects in the bucket matching the prefix.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.18.2.dev154"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|