sapiopycommons 2025.10.21a792__py3-none-any.whl → 2025.10.30a798__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) - 5} 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,14 +137,20 @@ 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) - 5} 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"
141
147
  for i, output in enumerate(self.json_output, start=1):
142
148
  output: list[Any]
143
149
  ret_val += f"\tJSON Output {i}:\n"
144
- for json_obj in output:
150
+ 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"
153
+ break
145
154
  ret_val += f"\t\t"
146
155
  ret_val += json.dumps(json_obj, indent=2).replace("\n", "\n\t\t") + "\n"
147
156
 
@@ -149,11 +158,17 @@ class AgentOutput:
149
158
  for i, output in enumerate(self.text_output, start=1):
150
159
  output: list[str]
151
160
  ret_val += f"\tText Output {i}:\n"
152
- for text in output:
161
+ 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"
164
+ break
153
165
  ret_val += f"\t\t{text}\n"
154
166
 
155
167
  ret_val += f"New Records: {len(self.new_records)} item(s)\n"
156
- for record in self.new_records:
168
+ 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"
171
+ break
157
172
  ret_val += f"{json.dumps(record, indent=2)}\n"
158
173
 
159
174
  ret_val += f"Logs: {len(self.logs)} item(s)\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sapiopycommons
3
- Version: 2025.10.21a792
3
+ Version: 2025.10.30a798
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=7UhaQUKMja5beg2Pawx3ORi1D6zgx4Hw47V5rPNp2j8,21309
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.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,,