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.4.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
pychunker-1.4.0-py3-none-any.whl
(10.6 kB
view hashes)
Close
Hashes for pychunker-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c24919901e62994c2c3f2db63602682b1735c48b0f96f1979bfb5703325ca04 |
|
MD5 | 41b18dbd4e58d3ab9f4a84fb7c12e5ce |
|
BLAKE2b-256 | 55e27102e7b164f872bf3e0afef8f49d64a3ca027784b08472ce782098fd89a1 |