sapiopycommons 2025.10.30a798__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.

@@ -128,7 +128,7 @@ class AgentOutput:
128
128
  ret_val += f"\tBinary Output {i}:\n"
129
129
  for j, binary in enumerate(output):
130
130
  if j > 5:
131
- ret_val += f"\t\tAnd {len(output) - 5} more binary items...\n"
131
+ ret_val += f"\t\tAnd {len(output) - j + 1} more binary items...\n"
132
132
  break
133
133
  ret_val += f"\t\t{len(binary)} byte(s): {binary[:50]}...\n"
134
134
 
@@ -139,37 +139,46 @@ class AgentOutput:
139
139
  ret_val += f"\t\tHeaders: {', '.join(output[0].keys())}\n"
140
140
  for j, csv_row in enumerate(output, start=1):
141
141
  if j > 5:
142
- ret_val += f"\t\tAnd {len(output) - 5} more CSV rows...\n"
142
+ ret_val += f"\t\tAnd {len(output) - j + 1} more CSV rows...\n"
143
143
  break
144
144
  ret_val += f"\t\t{j}: {', '.join(f'{v}' for k, v in csv_row.items())}\n"
145
145
 
146
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
147
148
  for i, output in enumerate(self.json_output, start=1):
148
149
  output: list[Any]
149
150
  ret_val += f"\tJSON Output {i}:\n"
150
151
  for j, json_obj in enumerate(output, start=1):
151
- if j > 5:
152
- ret_val += f"\t\tAnd {len(output) - 5} more JSON items...\n"
152
+ if j > 5 or lines > 100:
153
+ ret_val += f"\t\tAnd {len(output) - j + 1} more JSON items...\n"
153
154
  break
154
155
  ret_val += f"\t\t"
155
- 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
156
159
 
157
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
158
162
  for i, output in enumerate(self.text_output, start=1):
159
163
  output: list[str]
160
164
  ret_val += f"\tText Output {i}:\n"
161
165
  for j, text in enumerate(output, start=1):
162
- if j > 5:
163
- ret_val += f"\t\tAnd {len(output) - 5} more text items...\n"
166
+ if j > 5 or lines > 100:
167
+ ret_val += f"\t\tAnd {len(output) - j + 1} more text items...\n"
164
168
  break
169
+ lines += text.count("\n")
165
170
  ret_val += f"\t\t{text}\n"
166
171
 
167
172
  ret_val += f"New Records: {len(self.new_records)} item(s)\n"
173
+ lines: int = 0
168
174
  for i, record in enumerate(self.new_records, start=1):
169
- if i > 5:
170
- ret_val += f"\tAnd {len(self.new_records) - 5} more new records...\n"
175
+ if i > 5 or lines > 100:
176
+ ret_val += f"\tAnd {len(self.new_records) - j + 1} more new records...\n"
171
177
  break
172
- ret_val += f"{json.dumps(record, indent=2)}\n"
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
173
182
 
174
183
  ret_val += f"Logs: {len(self.logs)} item(s)\n"
175
184
  for log in self.logs:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sapiopycommons
3
- Version: 2025.10.30a798
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=7UhaQUKMja5beg2Pawx3ORi1D6zgx4Hw47V5rPNp2j8,21309
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.30a798.dist-info/METADATA,sha256=FgtPTxGyhh3KCK1JjfBmRFrnZsjzOninNSVcYF3b2lg,3143
110
- sapiopycommons-2025.10.30a798.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
111
- sapiopycommons-2025.10.30a798.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
112
- sapiopycommons-2025.10.30a798.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,,