python-sdk-remote 0.0.132__tar.gz → 0.0.133__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.132 → python_sdk_remote-0.0.133}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/our_object.py +18 -8
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/setup.py +1 -1
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/README.md +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/setup.cfg +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
-
from abc import ABC, abstractmethod
|
|
2
|
+
from abc import ABC # , abstractmethod
|
|
3
3
|
|
|
4
4
|
from .mini_logger import MiniLogger as logger
|
|
5
5
|
|
|
@@ -9,28 +9,35 @@ class OurObject(ABC):
|
|
|
9
9
|
def __init__(self, **kwargs):
|
|
10
10
|
INIT_METHOD_NAME = '__init__'
|
|
11
11
|
logger.start(INIT_METHOD_NAME, object={'kwargs': kwargs})
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
for field, value in kwargs.items():
|
|
14
|
+
# if field in event_fields:
|
|
15
|
+
setattr(self, field, value)
|
|
16
|
+
|
|
17
|
+
# self.kwargs = kwargs
|
|
13
18
|
logger.end(INIT_METHOD_NAME, object={'kwargs': kwargs})
|
|
14
19
|
|
|
15
20
|
# Commented so we can use it in database foreach()
|
|
16
|
-
|
|
21
|
+
# @abstractmethod
|
|
17
22
|
def get_name(self):
|
|
18
23
|
"""Returns the name of the object"""
|
|
19
|
-
#raise NotImplementedError(
|
|
20
|
-
#"Subclasses must implement the 'get_name' method.")
|
|
24
|
+
# raise NotImplementedError(
|
|
25
|
+
# "Subclasses must implement the 'get_name' method.")
|
|
21
26
|
|
|
22
27
|
def get(self, attr_name: str):
|
|
23
28
|
"""Returns the value of the attribute with the given name"""
|
|
24
29
|
GET_METHOD_NAME = 'get'
|
|
25
30
|
logger.start(GET_METHOD_NAME, object={'attr_name': attr_name})
|
|
26
|
-
arguments = getattr(self, 'kwargs', None)
|
|
27
|
-
value = arguments.get(attr_name, None)
|
|
31
|
+
# arguments = getattr(self, 'kwargs', None)
|
|
32
|
+
# value = arguments.get(attr_name, None)
|
|
33
|
+
value = self.__dict__.get(attr_name, None)
|
|
28
34
|
logger.end(GET_METHOD_NAME, object={'attr_name': attr_name})
|
|
29
35
|
return value
|
|
30
36
|
|
|
31
37
|
def get_all_arguments(self):
|
|
32
38
|
"""Returns all the arguments passed to the constructor as a dictionary"""
|
|
33
|
-
return getattr(self, 'kwargs', None)
|
|
39
|
+
# return getattr(self, 'kwargs', None)
|
|
40
|
+
return self.__dict__
|
|
34
41
|
|
|
35
42
|
def to_json(self) -> str:
|
|
36
43
|
"""Returns a json string representation of this object"""
|
|
@@ -55,3 +62,6 @@ class OurObject(ABC):
|
|
|
55
62
|
def __ne__(self, other) -> bool:
|
|
56
63
|
"""Checks if two objects are not equal"""
|
|
57
64
|
return not self.__eq__(other)
|
|
65
|
+
|
|
66
|
+
def get_dict(self):
|
|
67
|
+
return self.__dict__
|
|
@@ -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.133', # 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.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/mini_logger.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.132 → python_sdk_remote-0.0.133}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|