python-sdk-remote 0.0.155__tar.gz → 0.0.156__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.155 → python_sdk_remote-0.0.156}/PKG-INFO +1 -1
- python_sdk_remote-0.0.156/README.md +32 -0
- python_sdk_remote-0.0.156/python_sdk_remote/src/our_objects.py +5 -0
- python_sdk_remote-0.0.156/python_sdk_remote/src/our_objects_local.py +12 -0
- python_sdk_remote-0.0.156/python_sdk_remote/src/our_objects_remote.py +5 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/SOURCES.txt +3 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/setup.py +1 -1
- python_sdk_remote-0.0.155/README.md +0 -16
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/setup.cfg +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Python SDK Remote Python Package
|
|
2
|
+
|
|
3
|
+
## TODOs
|
|
4
|
+
|
|
5
|
+
TODO Add Requests.post() method which wraps requests.post() and adds logging and error handling similar to OurAxios.post() in typescript-sdk-remote repo
|
|
6
|
+
|
|
7
|
+
TODO If we don't have DatetimeRange, develop DatetimeRange which has start_datetime and end_datetime data members
|
|
8
|
+
|
|
9
|
+
TODO create OurObfuscation class with methods for each PII field obfuscation_first_name() - can have persistant mapping table in memory, obfuscation_last_name() - can have persistant mapping table in memory, obfuscation_organizataion_name() - can be persitant mapping table in memory, obfuscation_email_address() - can be emails in our development domain, obfuscation_organization(), obfuscation_phone_number() - preferable invalid phone numbers, obfuscation_social_id() - preferable valid social ids - obfuscation only when environment is not Prod1 and not Dvlp1.
|
|
10
|
+
Should do the same both in python-sdk-remote and typeScript-sdk-remote<br>
|
|
11
|
+
|
|
12
|
+
TODO Rewrite more examples
|
|
13
|
+
|
|
14
|
+
## Permission to the repo
|
|
15
|
+
Many Team Members (python-team, typescript-team, reactjs-team ...) are using makec/make_py/make_ts to CreateDevelopmentEnvironment.ps and they need read access to this repo to build their local environment.
|
|
16
|
+
|
|
17
|
+
## Usage in Serverless.com
|
|
18
|
+
|
|
19
|
+
In serverless, use this decorator:
|
|
20
|
+
```py
|
|
21
|
+
from python_sdk_remote.http_response import handler_decorator
|
|
22
|
+
from logger_local.Logger import Logger
|
|
23
|
+
logger = Logger.create_logger(object=your_logger_object)
|
|
24
|
+
@handler_decorator(logger=logger)
|
|
25
|
+
def my_handler(request_parameters: dict) -> dict:
|
|
26
|
+
# Here you can use both camelCase and snake_case keys from request_parameters
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Versions
|
|
30
|
+
|
|
31
|
+
0.0.151 for PRINT_STARS
|
|
32
|
+
0.0.152 LogMessageSeverity and StartEndEnum values in UPPERCASE
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# TODO This is DAL wrapping the database of specific entity. Update this class and use it for example in UserExternalsLocal
|
|
2
|
+
# class OurObjectsLocal
|
|
3
|
+
#
|
|
4
|
+
# entity_id: EntityId
|
|
5
|
+
#
|
|
6
|
+
# # Returns all the active Objects
|
|
7
|
+
# # TODO implement using active_by_filer(filter)
|
|
8
|
+
# def active() -> OurObjects:
|
|
9
|
+
#
|
|
10
|
+
# # TODO implement using GenericCrud and where
|
|
11
|
+
# def active_by_filter (Filter) -> OurObjects:
|
|
12
|
+
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
@@ -14,6 +14,9 @@ python_sdk_remote/src/is_test_data.py
|
|
|
14
14
|
python_sdk_remote/src/item.py
|
|
15
15
|
python_sdk_remote/src/mini_logger.py
|
|
16
16
|
python_sdk_remote/src/our_object.py
|
|
17
|
+
python_sdk_remote/src/our_objects.py
|
|
18
|
+
python_sdk_remote/src/our_objects_local.py
|
|
19
|
+
python_sdk_remote/src/our_objects_remote.py
|
|
17
20
|
python_sdk_remote/src/unified_json.py
|
|
18
21
|
python_sdk_remote/src/utilities.py
|
|
19
22
|
python_sdk_remote/src/valid_json_versions.py
|
|
@@ -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.156', # 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",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# TODO: rewrite with more examples
|
|
2
|
-
|
|
3
|
-
In serverless, use this decorator:
|
|
4
|
-
```py
|
|
5
|
-
from python_sdk_remote.http_response import handler_decorator
|
|
6
|
-
from logger_local.Logger import Logger
|
|
7
|
-
logger = Logger.create_logger(object=your_logger_object)
|
|
8
|
-
@handler_decorator(logger=logger)
|
|
9
|
-
def my_handler(request_parameters: dict) -> dict:
|
|
10
|
-
# here you can use both camelCase and snake_case keys from request_parameters
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# Versions
|
|
14
|
-
|
|
15
|
-
0.0.151 for PRINT_STARS
|
|
16
|
-
0.0.152 LogMessageSeverity and StartEndEnum values in UPPERCASE
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/mini_logger.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.155 → python_sdk_remote-0.0.156}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|