sapiopycommons 2025.10.21a792__py3-none-any.whl → 2025.10.30a799__py3-none-any.whl

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 sapiopycommons might be problematic. Click here for more details.

@@ -126,7 +126,10 @@ class AgentOutput:
126
126
  for i, output in enumerate(self.binary_output, start=1):
127
127
  output: list[bytes]
128
128
  ret_val += f"\tBinary Output {i}:\n"
129
- for binary in output:
129
+ for j, binary in enumerate(output):
130
+ if j > 5:
131
+ ret_val += f"\t\tAnd {len(output) - j + 1} more binary items...\n"
132
+ break
130
133
  ret_val += f"\t\t{len(binary)} byte(s): {binary[:50]}...\n"
131
134
 
132
135
  ret_val += f"CSV Output: {sum(len(x) for x in self.csv_output)} item(s) across {len(self.csv_output)} output(s)\n"
@@ -134,27 +137,48 @@ class AgentOutput:
134
137
  output: list[dict[str, Any]]
135
138
  ret_val += f"\tCSV Output {i}:\n"
136
139
  ret_val += f"\t\tHeaders: {', '.join(output[0].keys())}\n"
137
- for j, csv_row in enumerate(output):
140
+ for j, csv_row in enumerate(output, start=1):
141
+ if j > 5:
142
+ ret_val += f"\t\tAnd {len(output) - j + 1} more CSV rows...\n"
143
+ break
138
144
  ret_val += f"\t\t{j}: {', '.join(f'{v}' for k, v in csv_row.items())}\n"
139
145
 
140
146
  ret_val += f"JSON Output: {sum(len(x) for x in self.json_output)} item(s) across {len(self.json_output)} output(s)\n"
147
+ lines: int = 0
141
148
  for i, output in enumerate(self.json_output, start=1):
142
149
  output: list[Any]
143
150
  ret_val += f"\tJSON Output {i}:\n"
144
- for json_obj in output:
151
+ for j, json_obj in enumerate(output, start=1):
152
+ if j > 5 or lines > 100:
153
+ ret_val += f"\t\tAnd {len(output) - j + 1} more JSON items...\n"
154
+ break
145
155
  ret_val += f"\t\t"
146
- ret_val += json.dumps(json_obj, indent=2).replace("\n", "\n\t\t") + "\n"
156
+ dump = json.dumps(json_obj, indent=2).replace("\n", "\n\t\t") + "\n"
157
+ lines += dump.count("\n")
158
+ ret_val += dump
147
159
 
148
160
  ret_val += f"Text Output: {sum(len(x) for x in self.text_output)} item(s) across {len(self.text_output)} output(s)\n"
161
+ lines: int = 0
149
162
  for i, output in enumerate(self.text_output, start=1):
150
163
  output: list[str]
151
164
  ret_val += f"\tText Output {i}:\n"
152
- for text in output:
165
+ for j, text in enumerate(output, start=1):
166
+ if j > 5 or lines > 100:
167
+ ret_val += f"\t\tAnd {len(output) - j + 1} more text items...\n"
168
+ break
169
+ lines += text.count("\n")
153
170
  ret_val += f"\t\t{text}\n"
154
171
 
155
172
  ret_val += f"New Records: {len(self.new_records)} item(s)\n"
156
- for record in self.new_records:
157
- ret_val += f"{json.dumps(record, indent=2)}\n"
173
+ lines: int = 0
174
+ for i, record in enumerate(self.new_records, start=1):
175
+ if i > 5 or lines > 100:
176
+ ret_val += f"\tAnd {len(self.new_records) - j + 1} more new records...\n"
177
+ break
178
+ ret_val += f"\t"
179
+ dump = json.dumps(record, indent=2).replace("\n", "\n\t") + "\n"
180
+ lines += dump.count("\n")
181
+ ret_val += dump
158
182
 
159
183
  ret_val += f"Logs: {len(self.logs)} item(s)\n"
160
184
  for log in self.logs:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sapiopycommons
3
- Version: 2025.10.21a792
3
+ Version: 2025.10.30a799
4
4
  Summary: Official Sapio Python API Utilities Package
5
5
  Project-URL: Homepage, https://github.com/sapiosciences
6
6
  Author-email: Jonathan Steck <jsteck@sapiosciences.com>, Yechen Qiao <yqiao@sapiosciences.com>
@@ -6,7 +6,7 @@ sapiopycommons/ai/external_credentials.py,sha256=ki_xIH4J843b_sSwEa8YHr8vW9erVv-
6
6
  sapiopycommons/ai/protobuf_utils.py,sha256=cBjbxoFAwU02kNUxEce95WnMU2CMuDD-qFaeWgvQJMQ,24599
7
7
  sapiopycommons/ai/request_validation.py,sha256=dsCZXWDSHLm7pGywArB_GRymXxo1l-eGMn6veUwSg20,25641
8
8
  sapiopycommons/ai/server.py,sha256=gutSskn_Fenq1uz0DDMvjx4QVFiKt2WVEP3-01a69eU,6384
9
- sapiopycommons/ai/test_client.py,sha256=IRZ-8prhg7XMDmN9aC1MQr5mSkMgfT37aLsOy-VB-MU,20495
9
+ sapiopycommons/ai/test_client.py,sha256=42aQkspPN4XPp-zrebFVV1tAzxRTf73FNpFMygODzFE,21704
10
10
  sapiopycommons/ai/protoapi/externalcredentials/external_credentials_pb2.py,sha256=mEonoj6Iq-AyvO4m3YsPYu85aZfD1E0a0cL8B9yPfEo,2481
11
11
  sapiopycommons/ai/protoapi/externalcredentials/external_credentials_pb2.pyi,sha256=sfExq8fFwIwFxCpV50ytdxW5ePNBjJBr_80_trq_JQw,1658
12
12
  sapiopycommons/ai/protoapi/externalcredentials/external_credentials_pb2_grpc.py,sha256=TNS1CB_QGBSa1YU9sYR_hF-pmBwv2GpxjaNQoM_r9iU,948
@@ -106,7 +106,7 @@ sapiopycommons/webhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
106
106
  sapiopycommons/webhook/webhook_context.py,sha256=D793uLsb1691SalaPnBUk3rOSxn_hYLhdvkaIxjNXss,1909
107
107
  sapiopycommons/webhook/webhook_handlers.py,sha256=7o_wXOruhT9auNh8OfhJAh4WhhiPKij67FMBSpGPICc,39939
108
108
  sapiopycommons/webhook/webservice_handlers.py,sha256=cvW6Mk_110BzYqkbk63Kg7jWrltBCDALOlkJRu8h4VQ,14300
109
- sapiopycommons-2025.10.21a792.dist-info/METADATA,sha256=FBXgjKxmW_SKUAbzNUgTj5J-1h5PQMRXM6ek8hxyCq0,3143
110
- sapiopycommons-2025.10.21a792.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
111
- sapiopycommons-2025.10.21a792.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
112
- sapiopycommons-2025.10.21a792.dist-info/RECORD,,
109
+ sapiopycommons-2025.10.30a799.dist-info/METADATA,sha256=Ra84HXG0ZlYK8uCfMoqh5rq6W6DhJWMwrk8jRMJC52w,3143
110
+ sapiopycommons-2025.10.30a799.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
111
+ sapiopycommons-2025.10.30a799.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
112
+ sapiopycommons-2025.10.30a799.dist-info/RECORD,,