Python Library Stringtools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112
  1. import sys
  2. sys.path.append('../..')
  3. import report
  4. import stringtools
  5. report.stdoutLoggingConfigure(log_name_lvl=[('root', 'DEBUG'), ])
  6. s = stringtools.stp.stp()
  7. for byte in b':<:=message:=:>':
  8. data = s.process(bytes([byte]))
  9. if len(data) > 0:
  10. print(data)