python-sdk-remote 0.0.133__py3-none-any.whl → 0.0.134__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.
@@ -6,10 +6,10 @@ from .mini_logger import MiniLogger as logger
6
6
 
7
7
  # TODO Where are we using it? Shall we extend the usage of OurObject as the father of all our entities?
8
8
  class OurObject(ABC):
9
- def __init__(self, **kwargs):
9
+ def __init__(self, id_column_name, **kwargs):
10
10
  INIT_METHOD_NAME = '__init__'
11
11
  logger.start(INIT_METHOD_NAME, object={'kwargs': kwargs})
12
-
12
+ setattr(self, 'id_column_name', id_column_name)
13
13
  for field, value in kwargs.items():
14
14
  # if field in event_fields:
15
15
  setattr(self, field, value)
@@ -17,12 +17,16 @@ class OurObject(ABC):
17
17
  # self.kwargs = kwargs
18
18
  logger.end(INIT_METHOD_NAME, object={'kwargs': kwargs})
19
19
 
20
+ def get_id_column_name(self):
21
+ """Returns the id of the object"""
22
+ return self.get('id_column_name')
23
+
20
24
  # Commented so we can use it in database foreach()
21
25
  # @abstractmethod
22
26
  def get_name(self):
23
27
  """Returns the name of the object"""
24
28
  # raise NotImplementedError(
25
- # "Subclasses must implement the 'get_name' method.")
29
+ # "Subclasses must implement the 'get_name' method.")
26
30
 
27
31
  def get(self, attr_name: str):
28
32
  """Returns the value of the attribute with the given name"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-remote
3
- Version: 0.0.133
3
+ Version: 0.0.134
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-remote-python-package
6
6
  Author: Circles
@@ -3,12 +3,12 @@ python_sdk_remote/constants.py,sha256=0bg3t_4wzZLWFapseENer7qSx3NvniEF5n0H8AZ2G3
3
3
  python_sdk_remote/http_response.py,sha256=8-xkwl9LyuVh4F1cc5sFZBo0cj1LkOkJOluEWnsJQLY,6071
4
4
  python_sdk_remote/item.py,sha256=HnSLHkZTKTLNhlaZoPhKAwqG-yHPsd7zvqPPOqnrKVg,287
5
5
  python_sdk_remote/mini_logger.py,sha256=E6OUZ39uBkPN_cjemO6hfJcRcYtP1xh1ZwaCFyZYsXA,4132
6
- python_sdk_remote/our_object.py,sha256=-wBRCZXsEl5eLgZQX8ZIMW4V0APW3YuSuzPl1Oyvi_w,2434
6
+ python_sdk_remote/our_object.py,sha256=zlBKxctwNKYPK2uVMNz-Cx7_efF1O_1gZksZHcFTBBw,2621
7
7
  python_sdk_remote/unified_json.py,sha256=tLkikIVpFAtpioYwtovkGX8-3U9YElGWe4Ph34qDTq4,837
8
8
  python_sdk_remote/utilities.py,sha256=O02QqYqN-s3AZ3OC3-oYHOljZQgEA32Kcl-YzBs02DA,15100
9
9
  python_sdk_remote/valid_json_versions.py,sha256=-ZU65JYI6gTEfK8o6gu9Dmm9SQmwzj5pDbEXiyUbBhQ,138
10
10
  python_sdk_remote/validate_environment.py,sha256=nzCHZDw56G56ekrTQT3gG48utjsU4VCwQi9dVsBDas0,2268
11
- python_sdk_remote-0.0.133.dist-info/METADATA,sha256=1wspOFP9k_3wU0EGPJnIdg5qp_RtNxCP63XOIBvQieo,778
12
- python_sdk_remote-0.0.133.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
13
- python_sdk_remote-0.0.133.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
14
- python_sdk_remote-0.0.133.dist-info/RECORD,,
11
+ python_sdk_remote-0.0.134.dist-info/METADATA,sha256=xAVz0kg6PTdsHWRDwM3jD7W_RhT4UfzVCY7FoLHh8So,778
12
+ python_sdk_remote-0.0.134.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
13
+ python_sdk_remote-0.0.134.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
14
+ python_sdk_remote-0.0.134.dist-info/RECORD,,