Module for reading/writing chunk files.
Project description
Chunker
Description
Module for reading/writing chunk files.
Using
example.py
:
import pychunker
with pychunker.open("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.open("chunkfile.bin") as cf:
print(cf.chunks)
output
:
>>> [Chunk(name='DDAT', mode='r', size=10), Chunk(name='SDAT', mode='r', 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.2.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for pychunker-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b02364092b8ce3bd1675ca9e9892e621f91ee94984b51247ff969c57602a5d51 |
|
MD5 | ce83a7c1b9e39517dca3167e36be7d2e |
|
BLAKE2b-256 | a948436c8497962df8b4d15cdf0d620c5c8d4b741e03b768e483ecd2d732b489 |