Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mirusu400/binprint
- Owner: mirusu400
- License: mit
- Created: 2022-05-05T12:20:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-05T13:35:57.000Z (over 2 years ago)
- Last Synced: 2024-04-23T19:38:06.770Z (7 months ago)
- Topics: binary, dump, hex, library, pretty-print, pretty-printer, python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 binprintb = binprint.BinPrint("Hello world")
b.print()
```### Hex dump from file
```python
import binprintwith open("./tests/testing.png", "rb") as f:
b = binprint.BinPrint(f.read())
b.print()
```