sprocket-systems.coda.sdk 2.0.12__tar.gz → 2.1.0__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.
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/PKG-INFO +1 -1
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/pyproject.toml +1 -1
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/__init__.py +1 -1
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/essence.py +7 -7
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/workflow.py +14 -14
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/LICENSE +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/PYPI_README.md +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/__init__.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/constants.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/enums.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/exceptions.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/job.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/preset.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/utils.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk.py +0 -0
- {sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/tc_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sprocket-systems.coda.sdk
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: The Coda SDK provides a Python interface to define Coda workflows, create jobs and run them.
|
|
5
5
|
Keywords: python,coda,sdk
|
|
6
6
|
Author-Email: Sprocket Systems <support@sprocket.systems>
|
{sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/essence.py
RENAMED
|
@@ -412,20 +412,20 @@ class Essence:
|
|
|
412
412
|
files (List): A list of file paths.
|
|
413
413
|
io_location_id (str, optional): The IO Location ID associated with the source files. Required for agent transfers.
|
|
414
414
|
file_info (dict, optional): Manual override info for files. Required for S3.
|
|
415
|
-
Should contain keys like 'format', 'type', 'frames', '
|
|
415
|
+
Should contain keys like 'format', 'type', 'frames', 'auth'. Defaults to None.
|
|
416
416
|
Examples: file_info = {
|
|
417
417
|
"frames": 720000,
|
|
418
418
|
"format": Format.SEVEN_ONE,
|
|
419
419
|
"type": InputStemType.PRINTMASTER,
|
|
420
|
-
"
|
|
420
|
+
"auth": {
|
|
421
421
|
"iam_role": os.getenv(ENV_S3_ROLE, "XXXX"),
|
|
422
422
|
"iam_external_id": os.getenv(ENV_S3_EXTERNAL_ID, "XXXX"),
|
|
423
423
|
},
|
|
424
|
-
"
|
|
424
|
+
"opts": {"region": "us-west-2"},
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
-
Note: `
|
|
428
|
-
"
|
|
427
|
+
Note: `auth` may also use S3 access key secret and ID
|
|
428
|
+
"auth": {
|
|
429
429
|
"access_key_id": os.getenv(ENV_S3_ACCESS_KEY_ID, "XXXX"),
|
|
430
430
|
"secret_access_key": os.getenv(ENV_S3_SECRET_ACCESS_KEY, "XXXX"),
|
|
431
431
|
}
|
|
@@ -553,8 +553,8 @@ class Essence:
|
|
|
553
553
|
res = [
|
|
554
554
|
{
|
|
555
555
|
"url": r,
|
|
556
|
-
"auth": file_info.get("
|
|
557
|
-
"opts": file_info.get("
|
|
556
|
+
"auth": file_info.get("auth"),
|
|
557
|
+
"opts": file_info.get("opts"),
|
|
558
558
|
}
|
|
559
559
|
for r in s3_files
|
|
560
560
|
]
|
{sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/workflow.py
RENAMED
|
@@ -1120,40 +1120,40 @@ class WorkflowDefinitionBuilder:
|
|
|
1120
1120
|
|
|
1121
1121
|
return self
|
|
1122
1122
|
|
|
1123
|
-
def with_destination(self, name: str, io_location_id: str | None = None,
|
|
1123
|
+
def with_destination(self, name: str, io_location_id: str | None = None, url: str | None = None, auth: dict | None = None, options: dict | None = None) -> 'WorkflowDefinitionBuilder':
|
|
1124
1124
|
"""Add a destination node to the workflow.
|
|
1125
1125
|
|
|
1126
1126
|
Args:
|
|
1127
1127
|
name (str): A unique name for the destination.
|
|
1128
1128
|
io_location_id (str): The ULID of a desired IO Location. Defaults to None.
|
|
1129
|
-
|
|
1130
|
-
|
|
1129
|
+
url (str): The URL of the cloud storage destination (e.g., "s3://..."). Defaults to None.
|
|
1130
|
+
auth (dict, optional): Authentication details. Defaults to None.
|
|
1131
1131
|
options (dict, optional): URL options. Defaults to None.
|
|
1132
1132
|
|
|
1133
1133
|
Returns:
|
|
1134
1134
|
WorkflowDefinitionBuilder: The builder instance for fluent chaining.
|
|
1135
1135
|
|
|
1136
1136
|
Raises:
|
|
1137
|
-
ValueError: If either io_location or
|
|
1138
|
-
ValueError: If both io_location and
|
|
1137
|
+
ValueError: If either io_location or url is not supplied.
|
|
1138
|
+
ValueError: If both io_location and url is supplied.
|
|
1139
1139
|
|
|
1140
1140
|
"""
|
|
1141
|
-
if
|
|
1142
|
-
raise ValueError("Either an 'io_location_id' or '
|
|
1141
|
+
if url is None and io_location_id is None:
|
|
1142
|
+
raise ValueError("Either an 'io_location_id' or 'url' must be supplied")
|
|
1143
1143
|
|
|
1144
|
-
if
|
|
1145
|
-
raise ValueError("Either an 'io_location_id' or '
|
|
1144
|
+
if url is not None and io_location_id is not None:
|
|
1145
|
+
raise ValueError("Either an 'io_location_id' or 'url' must be supplied, not both.")
|
|
1146
1146
|
|
|
1147
1147
|
dest_def: dict[str, Any] = {"package_ids": []}
|
|
1148
|
-
if
|
|
1148
|
+
if url is not None and io_location_id is None:
|
|
1149
1149
|
dest_type = "s3"
|
|
1150
|
-
dest_def["url"] =
|
|
1151
|
-
if
|
|
1152
|
-
dest_def["auth"] =
|
|
1150
|
+
dest_def["url"] = url
|
|
1151
|
+
if auth:
|
|
1152
|
+
dest_def["auth"] = auth
|
|
1153
1153
|
if options:
|
|
1154
1154
|
dest_def["opts"] = options
|
|
1155
1155
|
|
|
1156
|
-
if io_location_id is not None and
|
|
1156
|
+
if io_location_id is not None and url is None:
|
|
1157
1157
|
dest_type = "io_location"
|
|
1158
1158
|
dest_def["io_location_id"] = io_location_id
|
|
1159
1159
|
|
|
File without changes
|
|
File without changes
|
{sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/__init__.py
RENAMED
|
File without changes
|
{sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{sprocket_systems_coda_sdk-2.0.12 → sprocket_systems_coda_sdk-2.1.0}/src/coda/sdk/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|