MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / cap

Function cap

botasaurus/output.py:193–202  ·  view source on GitHub ↗

Truncate the string if it exceeds 32767 characters and append '...'. :param string: The string to truncate. :return: The truncated string.

(string)

Source from the content-addressed store, hash-verified

191 return output_list
192
193def cap(string):
194 """
195 Truncate the string if it exceeds 32767 characters and append '...'.
196
197 :param string: The string to truncate.
198 :return: The truncated string.
199 """
200 if len(string) > 32767:
201 return string[:32764] + '...'
202 return string
203
204def convert_nested_to_json_for_excel(input_list):
205 """

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected