stringtools/_examples_/stp.stp.py

13 lines
273 B
Python
Raw Normal View History

2021-01-03 21:04:15 +01:00
import sys
sys.path.append('../..')
import report
import stringtools
report.stdoutLoggingConfigure(log_name_lvl=[('root', 'DEBUG'), ])
s = stringtools.stp.stp()
for byte in b':<:=message:=:>':
data = s.process(bytes([byte]))
if len(data) > 0:
print(data)