Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexcb/acbutils
misc python utilities
https://github.com/alexcb/acbutils
Last synced: about 1 month ago
JSON representation
misc python utilities
- Host: GitHub
- URL: https://github.com/alexcb/acbutils
- Owner: alexcb
- Created: 2017-03-30T20:27:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T21:18:52.000Z (about 1 year ago)
- Last Synced: 2024-05-09T10:26:08.562Z (7 months ago)
- Language: Python
- Size: 111 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# acbutils
misc python utilitiessudo pip3 install git+git://github.com/alexcb/acbutils.git@master
or from local copy:
sudo pip3 install --ignore-installed .
## structured_stream
example of reading binary from stdin
# run with
cat /tmp/data.scratch | python3 scratch-decoder.py# scratch-decoder.py
import sys
from acbutils.structured_stream import StructuredStreamss = StructuredStream(sys.stdin.buffer)
header = ss.get_bytes(64)
print(header)