python-sdk-remote 0.0.133__tar.gz → 0.0.134__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.
Potentially problematic release.
This version of python-sdk-remote might be problematic. Click here for more details.
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/our_object.py +7 -3
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/setup.py +1 -1
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/README.md +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/setup.cfg +0 -0
|
@@ -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
|
-
|
|
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"""
|
|
@@ -7,7 +7,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
7
7
|
# python -m build needs pyproject.toml or setup.py
|
|
8
8
|
setuptools.setup(
|
|
9
9
|
name=PACKAGE_NAME,
|
|
10
|
-
version='0.0.
|
|
10
|
+
version='0.0.134', # https://pypi.org/project/python-sdk-remote/
|
|
11
11
|
author="Circles",
|
|
12
12
|
author_email="info@circlez.ai",
|
|
13
13
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/mini_logger.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.133 → python_sdk_remote-0.0.134}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|