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.1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for pychunker-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5403d137a60d0ab0e0f1c9f8be8270c106050a59fd78f21e1395449bcab3e481 |
|
MD5 | 985548352c11d61dc82d2f7ea11563a5 |
|
BLAKE2b-256 | abeaf6dc62284819c137575adbff8ff55459b91753c1c578647dc1f4420f4b0f |