Module for reading/writing chunk files.
Project description
Chunker
Description
Module for reading/writing chunk files.
Using
exmaple.py
:
import pychunker
with pychunker.open("chunkfile.bin", "w") as cf:
cf.create_chunk("ADAT")
cf.create_chunk("STR_")
cf["ADAT"].write(b'1234567890')
cf["STR_"].write(b'STRING')
with pychunker.open("chunkfile.bin") as cf:
print(cf.chunks)
output
:
>>> [Chunk(name='ADAT', mode='r', size=10), Chunk(name='STR_', mode='r', size=6)]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pychunker-1.0.0.post1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pychunker-1.0.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11056de05adff0a1ab86dd7703c22e08c1c9aadd552f7313c290c0e0ff4390e |
|
MD5 | 2af2c48eb882e8e4b7fec1581f553008 |
|
BLAKE2b-256 | f6d3229e776b40418f939da879c38079bdf749f2e12d9c61722989213e1c9555 |