Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mirusu400/binprint

Simple package to pretty print binary data in python
https://github.com/mirusu400/binprint

binary dump hex library pretty-print pretty-printer python

Last synced: about 4 hours ago
JSON representation

Simple package to pretty print binary data in python

Awesome Lists containing this project

README

        

# binprint
Simple package to pretty print binary data in python

# Installation
```
pip install binprint
```

# Usage

### Hex dump from raw text
```python
import binprint

b = binprint.BinPrint("Hello world")
b.print()
```

### Hex dump from file
```python
import binprint

with open("./tests/testing.png", "rb") as f:
b = binprint.BinPrint(f.read())
b.print()
```