Skip to main content

Trace toolkit to print formatted traces of binary data

Project description

A simple library to print formatted trace messages, e.g.:

12:08:16.762628 >> 206 bytes sent:

00 cc 30 31 30 30 72 30 05 80 20 c0 92 00 31 36 ..0100r0.. …16 38 39 39 30 30 31 31 32 33 34 35 36 37 38 39 30 8990011234567890 30 30 30 30 30 30 30 30 30 30 30 30 30 32 30 30 0000000000000200 30 30 31 34 39 34 35 30 34 34 39 34 38 30 30 32 0014945044948002 33 31 31 37 30 35 31 31 31 32 30 38 31 34 39 30 3117051112081490 30 31 30 30 30 30 33 32 38 39 39 30 30 31 31 32 0100003289900112 33 34 35 36 37 38 39 30 44 31 38 30 39 32 30 31 34567890D1809201 31 38 37 32 33 30 30 30 31 30 30 30 31 33 33 37 1872300010001337 39 39 39 39 39 39 39 39 39 39 39 39 30 30 31 36 9999999999990016 34 33 2b 68 7a ef c3 4b 1a 89 30 34 39 82 02 00 43+hz..K..049… 00 9a 03 17 05 11 95 05 00 00 04 08 80 9f 10 02 ……………. 00 00 9f 26 08 ed 2c d0 d2 98 94 fb aa 9f 36 02 …&..,…….6. 00 01 9f 37 04 8f a4 f2 bd 9f 1a 02 06 43 …7………C

12:08:17.013138 << 110 bytes received:

00 6c 30 31 31 30 72 30 00 00 0e 80 80 00 31 36 .l0110r0……16 38 39 39 30 30 31 31 32 33 34 35 36 37 38 39 30 8990011234567890 30 30 30 30 30 30 30 30 30 30 30 30 30 32 30 30 0000000000000200 30 30 31 34 39 34 35 30 34 34 39 34 38 30 30 32 0014945044948002 33 31 31 37 30 35 31 31 31 32 30 38 31 34 30 30 3117051112081400 30 30 30 30 31 30 36 38 34 38 31 30 36 38 34 38 0000106848106848 30 30 30 31 30 30 30 31 33 33 37 36 34 33 00010001337643

Usage: >>> from tracetools.tracetools import trace >>> trace(‘user-defined-title(optional)’, data)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracetools-1.2.tar.gz (12.8 kB view details)

Uploaded Source

File details

Details for the file tracetools-1.2.tar.gz.

File metadata

  • Download URL: tracetools-1.2.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tracetools-1.2.tar.gz
Algorithm Hash digest
SHA256 d068a1895015ce9200f99e96e883e2dfc52c7e0e76b148309b7cf9d160223c0c
MD5 6a4a79b30b0579f6292bb863d496b31a
BLAKE2b-256 77a8e6aa1daf39dc8b60acc30748892a3993b49a6213abd7c76ac1ecf9ce09a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page