Module for reading/writing chunk files.
Project description
Chunker
Description
Module for reading/writing chunk files.
Using
exmaple.py
:
import chunker
with chunker.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 chunker.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.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pychunker-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4e91c0cc7459e0e9e7e8271166fe3dd5d6b44c0826cf62049f978d3d338d64f |
|
MD5 | 8272e86dfb8dedc2112ce7ea901af2b9 |
|
BLAKE2b-256 | b8276a64ea7c4cb3d518b51199ec7b1d59185498ad2c54b1877239c376f29ae5 |