dc-python-sdk 1.5.29__tar.gz → 1.5.30__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.
- {dc_python_sdk-1.5.29/src/dc_python_sdk.egg-info → dc_python_sdk-1.5.30}/PKG-INFO +1 -1
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/pyproject.toml +1 -1
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/setup.cfg +1 -1
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30/src/dc_python_sdk.egg-info}/PKG-INFO +1 -1
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/handler.py +4 -1
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/mapping.py +2 -2
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/LICENSE +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/README.md +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_python_sdk.egg-info/SOURCES.txt +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_python_sdk.egg-info/dependency_links.txt +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_python_sdk.egg-info/entry_points.txt +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_python_sdk.egg-info/requires.txt +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_python_sdk.egg-info/top_level.txt +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/__init__.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/app.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/cli.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/errors.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/__init__.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/ai.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/ai_http.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/models/__init__.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/models/enums.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/models/errors.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/models/log_templates.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/models/pipeline_details.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/pipeline.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/server.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/services/__init__.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/services/api.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/services/aws.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/services/environment.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/services/loader.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/services/logger.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/src/services/session.py +0 -0
- {dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_sdk/types.py +0 -0
|
@@ -27,6 +27,9 @@ def handler(event, context):
|
|
|
27
27
|
object_id = event['object_id'] if 'object_id' in event else None
|
|
28
28
|
field_ids = event['mapping'] if 'mapping' in event else None
|
|
29
29
|
options = event['options'] if 'options' in event else dict()
|
|
30
|
+
next_page = event['next_page'] if 'next_page' in event else None
|
|
31
|
+
n_rows = event['n_rows'] if 'n_rows' in event else None
|
|
32
|
+
filters = event['filters'] if 'filters' in event else None
|
|
30
33
|
|
|
31
34
|
try:
|
|
32
35
|
action_name = get_action_name(action)
|
|
@@ -41,7 +44,7 @@ def handler(event, context):
|
|
|
41
44
|
results, message = mapping.get_fields(object_id, options)
|
|
42
45
|
elif action == 2:
|
|
43
46
|
results, message = mapping.get_five_row_preview(
|
|
44
|
-
object_id, field_ids, options)
|
|
47
|
+
object_id, field_ids, options, n_rows, filters, next_page)
|
|
45
48
|
elif action == 3:
|
|
46
49
|
results, message = mapping.test_connection()
|
|
47
50
|
else:
|
|
@@ -82,12 +82,12 @@ class Mapping():
|
|
|
82
82
|
|
|
83
83
|
return [results, message]
|
|
84
84
|
|
|
85
|
-
def get_five_row_preview(self, object_id, field_ids, options):
|
|
85
|
+
def get_five_row_preview(self, object_id, field_ids, options, n_rows = 5, filters = None, next_page = None):
|
|
86
86
|
results = None
|
|
87
87
|
message = None
|
|
88
88
|
|
|
89
89
|
if self.connector.authenticate():
|
|
90
|
-
results = self.connector.get_data(object_id, field_ids=field_ids, n_rows=
|
|
90
|
+
results = self.connector.get_data(object_id, field_ids=field_ids, n_rows=n_rows, filters=filters, next_page=next_page, options=options)
|
|
91
91
|
message = "Retrieved 5 row preview"
|
|
92
92
|
else:
|
|
93
93
|
# If not authenticated, raise the authentication error.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dc_python_sdk-1.5.29 → dc_python_sdk-1.5.30}/src/dc_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|