commons-metrics 0.0.21__py3-none-any.whl → 0.0.22__py3-none-any.whl
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.
- commons_metrics/__init__.py +1 -1
- commons_metrics/cache_manager.py +2 -3
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.22.dist-info}/METADATA +1 -1
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.22.dist-info}/RECORD +7 -7
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.22.dist-info}/WHEEL +0 -0
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.22.dist-info}/licenses/LICENSE +0 -0
- {commons_metrics-0.0.21.dist-info → commons_metrics-0.0.22.dist-info}/top_level.txt +0 -0
commons_metrics/__init__.py
CHANGED
|
@@ -12,4 +12,4 @@ from .text_simplifier import TextSimplifier
|
|
|
12
12
|
from .variable_finder import VariableFinder
|
|
13
13
|
|
|
14
14
|
__all__ = ['Util', 'DatabaseConnection', 'ComponentRepository', 'UpdateDesignSystemComponents', 'GitHubAPIClient', 'AzureDevOpsClient', 'S3FileManager', 'CacheManager', 'CommonsReposClient', 'DateUtils', 'TextSimplifier', 'VariableFinder']
|
|
15
|
-
__version__ = '0.0.
|
|
15
|
+
__version__ = '0.0.22'
|
commons_metrics/cache_manager.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import requests
|
|
2
2
|
import urllib3
|
|
3
|
-
|
|
4
3
|
from .s3_file_manager import S3FileManager
|
|
5
4
|
|
|
6
5
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
@@ -9,8 +8,8 @@ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
|
9
8
|
class CacheManager:
|
|
10
9
|
"""Manager for caching data in S3 and making API requests"""
|
|
11
10
|
|
|
12
|
-
def __init__(self):
|
|
13
|
-
self.s3 = S3FileManager()
|
|
11
|
+
def __init__(self, bucket: str, aws_region: str):
|
|
12
|
+
self.s3 = S3FileManager(bucket=bucket, aws_region=aws_region)
|
|
14
13
|
|
|
15
14
|
def load_cache_or_fetch(self, path: str, fetch_fn, clear_cache: bool = False):
|
|
16
15
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
commons_metrics/__init__.py,sha256=
|
|
1
|
+
commons_metrics/__init__.py,sha256=OApw2zEoANZrVtA4Ro-h9mOaeRFW26Tazz5d2rRThsY,796
|
|
2
2
|
commons_metrics/azure_devops_client.py,sha256=sD130ggzZWUsNqkBVNrLH80_AN00CxQ4preP9sBdzHM,16778
|
|
3
|
-
commons_metrics/cache_manager.py,sha256=
|
|
3
|
+
commons_metrics/cache_manager.py,sha256=HOeup9twUizjJAbh1MNXdPT8BMVeLFoolOWlAzMTXkE,2651
|
|
4
4
|
commons_metrics/commons_repos_client.py,sha256=PiAMLWuDnI8AlZzE3sfQ3s2P23UrYbbqaq63AFRroHc,4695
|
|
5
5
|
commons_metrics/database.py,sha256=wzcrK8q09J28NMLExkhWy8w7N2fQPkckrGf62C9rdQ0,1989
|
|
6
6
|
commons_metrics/date_utils.py,sha256=8465712QJDGcshqry97Gi90lbMEbvbX3uiuHRVwGHbE,2654
|
|
@@ -11,8 +11,8 @@ commons_metrics/text_simplifier.py,sha256=jRYckQ5APR0A3wY4hg70kOHxHUFuGzd6D-CJC3
|
|
|
11
11
|
commons_metrics/update_design_components.py,sha256=QpY0GCCCMjdYOZ7b8oNigU9iTpiGx91CYsyWwN8WVDA,7660
|
|
12
12
|
commons_metrics/util.py,sha256=98zuynalXumQRh-BB0Bcjyoh6vS2BTOUM8tVgr7iS9Q,1225
|
|
13
13
|
commons_metrics/variable_finder.py,sha256=pxI_XSd-lq_AiUjDbcUC4knIZhWZwt7HQrQOa-F0ud4,8061
|
|
14
|
-
commons_metrics-0.0.
|
|
15
|
-
commons_metrics-0.0.
|
|
16
|
-
commons_metrics-0.0.
|
|
17
|
-
commons_metrics-0.0.
|
|
18
|
-
commons_metrics-0.0.
|
|
14
|
+
commons_metrics-0.0.22.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
|
|
15
|
+
commons_metrics-0.0.22.dist-info/METADATA,sha256=ayPIDGEVQgYsQySmNneULcEyQ42-bejwGFV6HGJ_q0I,402
|
|
16
|
+
commons_metrics-0.0.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
commons_metrics-0.0.22.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
|
|
18
|
+
commons_metrics-0.0.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|