Module for reading/writing chunk files.
Project description
Chunker
Description
Module for reading/writing chunk files.
Installation
pip install pychunker
Using
example.py
:
import pychunker
with pychunker.opencf("chunkfile.bin", "w") as cf:
with cf.create_chunk("DDAT") as ddat:
ddat.write(b'1234567890')
with cf.create_chunk("SDAT") as sdat:
sdat.write(b'Hello World!')
with pychunker.opencf("chunkfile.bin") as cf:
print(cf.chunks)
output
:
>>> [Chunk(name='DDAT', mode='a', size=10), Chunk(name='SDAT', mode='a', size=12)]
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.3.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for pychunker-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f795fdeaf2ae35da39698dc7da28507475a7a4c341e787c6e79370eab0102f |
|
MD5 | 8de52478e4f2b4e0b81c57312f2b1052 |
|
BLAKE2b-256 | 5c3edbfeeb4542593b6c23e6ff2bea3ff2b29270c33edaab03036f16645f7f8e |