rbx 3.18.3.dev157__tar.gz → 3.18.3.dev159__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.3.dev157 → rbx-3.18.3.dev159}/PKG-INFO +1 -1
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/pyproject.toml +2 -2
- rbx-3.18.3.dev159/rbx/__init__.py +1 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/toolkit/__init__.py +2 -2
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/toolkit/exporter.py +12 -5
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx.egg-info/PKG-INFO +1 -1
- rbx-3.18.3.dev157/rbx/__init__.py +0 -1
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/LICENSE +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/README.md +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/auth/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/auth/decorators.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/auth/keystore.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/auth/mock.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/aws/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/aws/s3.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/buildtools/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/buildtools/cli.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/buildtools/tasks/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/buildtools/tasks/apprunner.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/buildtools/tasks/ec2.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/buildtools/tasks/image.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/buildtools/tasks/misc.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/clients/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/clients/adsquare.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/clients/broadsign.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/clients/oxr.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/clients/panels.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/clients/reporting.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/clients/retry.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/exceptions.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/gcp/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/gcp/cloud_tasks.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/gcp/pubsub.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/gcp/storage.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/logging.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/settings.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/toolkit/browser.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/toolkit/cli.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/toolkit/media.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/toolkit/utils.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/utils/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/utils/mdm.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/utils/vast.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/web/__init__.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx/web/handlers.py +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx.egg-info/SOURCES.txt +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx.egg-info/dependency_links.txt +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx.egg-info/entry_points.txt +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx.egg-info/requires.txt +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/rbx.egg-info/top_level.txt +0 -0
- {rbx-3.18.3.dev157 → rbx-3.18.3.dev159}/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.3.
|
|
7
|
+
version = "3.18.3.dev159"
|
|
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" }
|
|
@@ -90,7 +90,7 @@ homepage = "https://github.com/rockabox/rbx"
|
|
|
90
90
|
repository = "https://github.com/rockabox/rbx.git"
|
|
91
91
|
|
|
92
92
|
[tool.bumpversion]
|
|
93
|
-
current_version = "3.18.3.
|
|
93
|
+
current_version = "3.18.3.dev159"
|
|
94
94
|
commit = true
|
|
95
95
|
parse = """
|
|
96
96
|
(?P<major>\\d+)\\.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.18.3.dev159"
|
|
@@ -34,7 +34,7 @@ async def capture(filename: str, options: Options, path: Path) -> None:
|
|
|
34
34
|
await record(
|
|
35
35
|
dirname=str(path),
|
|
36
36
|
filename=str(path / filename),
|
|
37
|
-
duration=
|
|
37
|
+
duration=options.duration,
|
|
38
38
|
height=options.height,
|
|
39
39
|
url=options.url,
|
|
40
40
|
width=options.width,
|
|
@@ -60,7 +60,7 @@ async def run(options: Options) -> None:
|
|
|
60
60
|
if options.duration:
|
|
61
61
|
logger.info(
|
|
62
62
|
f"Capturing '{options.url}' [{options.width}x{options.height}]"
|
|
63
|
-
f" for {options.duration}
|
|
63
|
+
f" for {options.duration}ms to '{output}'",
|
|
64
64
|
)
|
|
65
65
|
else:
|
|
66
66
|
logger.info(
|
|
@@ -14,12 +14,19 @@ logging.basicConfig(level=config("LOG_LEVEL", default="INFO"))
|
|
|
14
14
|
async def handler(request):
|
|
15
15
|
payload = await request.json()
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
filename = f"{name}.{ext}"
|
|
17
|
+
errors = []
|
|
18
|
+
for param in ("url", "width", "height", "format", "name"):
|
|
19
|
+
if param not in payload.keys():
|
|
20
|
+
errors.append(f"Missing required '{param}' parameter")
|
|
22
21
|
|
|
22
|
+
if payload.get("format") == "video" and "duration" not in payload.keys():
|
|
23
|
+
errors.append("Missing required 'duration' parameter")
|
|
24
|
+
|
|
25
|
+
if errors:
|
|
26
|
+
return JSONResponse({"errors": errors}, status_code=400)
|
|
27
|
+
|
|
28
|
+
ext = "mp4" if payload["format"] == "video" else "png"
|
|
29
|
+
filename = f"{payload['name']}.{ext}"
|
|
23
30
|
project_id = config("GOOGLE_CLOUD_PROJECT", default="dev-platform-eu")
|
|
24
31
|
output = f"gs://{project_id}.appspot.com/toolkit/exports/"
|
|
25
32
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.18.3.dev157"
|
|
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
|