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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pychunker-1.2.0.tar.gz.
File metadata
- Download URL: pychunker-1.2.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39c0f0416a9b2ce776c90cf20d27b885129a302d8eabaebd51e2df00335b186e
|
|
| MD5 |
8b250be372fee79a3cf1de45f6124632
|
|
| BLAKE2b-256 |
352eaa8da0e18f61f605457be0eac2efe93cd3881b216a9f5c6732722f929367
|
File details
Details for the file pychunker-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pychunker-1.2.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b02364092b8ce3bd1675ca9e9892e621f91ee94984b51247ff969c57602a5d51
|
|
| MD5 |
ce83a7c1b9e39517dca3167e36be7d2e
|
|
| BLAKE2b-256 |
a948436c8497962df8b4d15cdf0d620c5c8d4b741e03b768e483ecd2d732b489
|