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.post2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pychunker-1.0.0.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93faaa0121ae8e9a7240252dc0901b9d95d616516d131d9fefc2c44d8b945da5 |
|
MD5 | 236d20e8f267809d3face879c7141208 |
|
BLAKE2b-256 | d6cdd389462a2192b58163b400f27df262347610b7211c42804c315ce5d47b3e |