rbx 3.26.0.dev201__tar.gz → 3.26.0.dev202__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.26.0.dev201 → rbx-3.26.0.dev202}/PKG-INFO +1 -1
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/pyproject.toml +2 -2
- rbx-3.26.0.dev202/rbx/__init__.py +1 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/panels.py +6 -10
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/place_exchange.py +3 -15
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx.egg-info/PKG-INFO +1 -1
- rbx-3.26.0.dev201/rbx/__init__.py +0 -1
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/LICENSE +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/README.md +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/auth/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/auth/decorators.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/auth/id_token.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/auth/keystore.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/auth/mock.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/aws/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/aws/s3.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/buildtools/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/buildtools/cli.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/buildtools/tasks/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/buildtools/tasks/ec2.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/buildtools/tasks/image.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/buildtools/tasks/misc.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/adsquare.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/broadsign.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/oxr.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/reporting.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/clients/retry.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/exceptions.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/gcp/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/gcp/cloud_tasks.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/gcp/pubsub.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/gcp/storage.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/logging.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/settings.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/utils/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/utils/mdm.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/utils/vast.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/web/__init__.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx/web/handlers.py +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx.egg-info/SOURCES.txt +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx.egg-info/dependency_links.txt +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx.egg-info/entry_points.txt +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx.egg-info/requires.txt +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/rbx.egg-info/top_level.txt +0 -0
- {rbx-3.26.0.dev201 → rbx-3.26.0.dev202}/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.26.0.
|
|
7
|
+
version = "3.26.0.dev202"
|
|
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" }
|
|
@@ -80,7 +80,7 @@ homepage = "https://github.com/rockabox/rbx"
|
|
|
80
80
|
repository = "https://github.com/rockabox/rbx.git"
|
|
81
81
|
|
|
82
82
|
[tool.bumpversion]
|
|
83
|
-
current_version = "3.26.0.
|
|
83
|
+
current_version = "3.26.0.dev202"
|
|
84
84
|
commit = true
|
|
85
85
|
parse = """
|
|
86
86
|
(?P<major>\\d+)\\.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.26.0.dev202"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
|
|
3
|
-
from . import Client, HttpAuth
|
|
3
|
+
from . import Client as Base, HttpAuth
|
|
4
4
|
|
|
5
5
|
logger = logging.getLogger(__name__)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
9
|
-
"""API Client for the
|
|
8
|
+
class Client(Base):
|
|
9
|
+
"""API Client for the Panel Service."""
|
|
10
10
|
|
|
11
11
|
def __init__(self, endpoint, token):
|
|
12
12
|
super().__init__()
|
|
@@ -15,11 +15,11 @@ class PanelsClient(Client):
|
|
|
15
15
|
|
|
16
16
|
@property
|
|
17
17
|
def auth(self):
|
|
18
|
-
"""The
|
|
18
|
+
"""The Panel Service uses Digest Authentication."""
|
|
19
19
|
return HttpAuth(self.token, key="X-RBX-TOKEN")
|
|
20
20
|
|
|
21
|
-
def
|
|
22
|
-
"""Perform a
|
|
21
|
+
def search(self, timeout=180, **parameters):
|
|
22
|
+
"""Perform a screen search."""
|
|
23
23
|
kwargs = {"data": parameters, "timeout": timeout}
|
|
24
24
|
|
|
25
25
|
# When requesting CSV data, ensure the underlying client knows to treat
|
|
@@ -29,10 +29,6 @@ class PanelsClient(Client):
|
|
|
29
29
|
|
|
30
30
|
return self._post("/screens", **kwargs)
|
|
31
31
|
|
|
32
|
-
def search(self, **parameters):
|
|
33
|
-
"""Perform a Panels search."""
|
|
34
|
-
return self._post("/search", data=parameters)
|
|
35
|
-
|
|
36
32
|
def set_weather_watch(self, caller, country, supplier):
|
|
37
33
|
"""Set a watch on the specified country and supplier, using the caller ID."""
|
|
38
34
|
return self.request(
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
from typing import Dict, Any, Optional
|
|
3
3
|
|
|
4
|
-
import arrow
|
|
5
4
|
import requests
|
|
6
5
|
|
|
7
6
|
from requests.auth import AuthBase
|
|
@@ -277,23 +276,12 @@ class PlaceExchangeClient(Client):
|
|
|
277
276
|
params=params if params else None,
|
|
278
277
|
)
|
|
279
278
|
|
|
280
|
-
def get_screens(self,
|
|
281
|
-
"""Retrieve a page of screens from Place Exchange.
|
|
282
|
-
|
|
283
|
-
Args:
|
|
284
|
-
last_modified: A datetime instance representing the cutoff timestamp.
|
|
285
|
-
This will be converted to an ISO 8601 UTC string (``YYYY-MM-DDTHH:MM:SSZ``)
|
|
286
|
-
in UTC and passed to the API.
|
|
287
|
-
page: Page number to retrieve.
|
|
288
|
-
"""
|
|
279
|
+
def get_screens(self, page=None):
|
|
280
|
+
"""Retrieve a page of screens from Place Exchange."""
|
|
289
281
|
path = f"v3/orgs/{self.org_id}/avails"
|
|
290
282
|
params = {"page_size": 1000}
|
|
291
283
|
|
|
292
|
-
if
|
|
293
|
-
dt_utc = arrow.get(last_modified).to("utc")
|
|
294
|
-
params["adunits_lastmod"] = dt_utc.strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
295
|
-
|
|
296
|
-
if page is not None:
|
|
284
|
+
if page:
|
|
297
285
|
params["page"] = page
|
|
298
286
|
|
|
299
287
|
response = self.request("get", path, params=params, include_headers=True)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.26.0.dev201"
|
|
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
|