Popular recipes tagged "dump"http://code.activestate.com/recipes/tags/dump/2015-11-01T12:43:38-08:00ActiveState Code Recipesdata_dump.py, like the Unix od (octal dump) command (Python)
2015-11-01T12:43:38-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/579120-data_dumppy-like-the-unix-od-octal-dump-command/
<p style="color: grey">
Python
recipe 579120
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/data/">data</a>, <a href="/recipes/tags/dump/">dump</a>, <a href="/recipes/tags/hexadecimal/">hexadecimal</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/octal/">octal</a>, <a href="/recipes/tags/od/">od</a>, <a href="/recipes/tags/representation/">representation</a>, <a href="/recipes/tags/unix/">unix</a>, <a href="/recipes/tags/utility/">utility</a>, <a href="/recipes/tags/windows/">windows</a>).
</p>
<p>This recipe implements a simple data dump tool, roughly like the od command of Unix, which stands for octal dump (though od can also dump data in hex and other formats). This tool dumps data in character and hex formats, in this version. This is data_dump.py version 1.</p>
Hex Dump (Python)
2015-05-29T10:44:47-07:00Wenlong Liuhttp://code.activestate.com/recipes/users/4192273/http://code.activestate.com/recipes/579064-hex-dump/
<p style="color: grey">
Python
recipe 579064
by <a href="/recipes/users/4192273/">Wenlong Liu</a>
(<a href="/recipes/tags/dump/">dump</a>, <a href="/recipes/tags/hex/">hex</a>, <a href="/recipes/tags/python/">python</a>).
Revision 4.
</p>
<p>Hex dump a sequence of bytes.</p>
<p>Sample output:</p>
<pre class="prettyprint"><code> 0000000000: 33 C0 8E D0 BC 00 7C 8E C0 8E D8 BE 00 7C BF 00 3.....|. .....|..
0000000010: 06 B9 00 02 FC F3 A4 50 68 1C 06 CB FB B9 04 00 .......P h.......
0000000020: BD BE 07 80 7E 00 00 7C 0B 0F 85 0E 01 83 C5 10 ....~..| ........
0000000030: E2 F1 CD 18 88 56 00 55 C6 46 11 05 C6 46 10 00 .....V.U .F...F..
0000000040: B4 41 BB AA 55 CD 13 5D 72 0F 81 FB 55 AA 75 09 .A..U..] r...U.u.
0000000050: F7 C1 01 00 74 03 FE 46 10 66 60 80 7E 10 00 74 ....t..F .f`.~..t
0000000060: 26 66 68 00 00 00 00 66 FF 76 08 68 00 00 68 00 &fh....f .v.h..h.
0000000070: 7C 68 01 |h.
</code></pre>
Hex Dump 2 (Python)
2009-11-03T05:25:21-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/576945-hex-dump-2/
<p style="color: grey">
Python
recipe 576945
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/dump/">dump</a>, <a href="/recipes/tags/hex/">hex</a>).
</p>
<p>This is a fast hex-dumping utility written for Python 3.1 and later.</p>
<p>Written for the command line with usage information printed as needed.</p>
Hex Dumper (Python)
2012-07-04T01:07:49-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/502203-hex-dumper/
<p style="color: grey">
Python
recipe 502203
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/dump/">dump</a>, <a href="/recipes/tags/dumper/">dumper</a>, <a href="/recipes/tags/hex/">hex</a>, <a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>Just another hex dumper written in one of our favorite languages ...</p>