MCPcopy
hub / github.com/epinna/tplmap / chunkit

Function chunkit

utils/strings.py:15–19  ·  view source on GitHub ↗

A generator to divide a sequence into chunks of n units.

( seq, n )

Source from the content-addressed store, hash-verified

13 return base64.b64decode(data)
14
15def chunkit( seq, n ):
16 """A generator to divide a sequence into chunks of n units."""
17 while seq:
18 yield seq[:n]
19 seq = seq[n:]
20
21def md5(data):
22 return hashlib.md5(data).hexdigest()

Callers 1

writeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected