stringtools/_examples_/csp.csp.py

13 lines
271 B
Python

import sys # nopep8
sys.path.append('../..') # nopep8
import report
import stringtools
report.default_logging_config()
s = stringtools.csp.csp()
for byte in b'message\n':
data = s.process(bytes([byte]))
if len(data) > 0:
print(data)