Chunker
Description
Module for reading/writing chunk files.
Installation
pip install pychunker
Using
example.py:
import pychunker
with pychunker.open("chunkfile.bin", "w") as cf:
# The chunk can be used via `with'.
with cf.chunk("DDAT") as ddat:
ddat.write(b'1234567890')
# Or by contacting the key (name of the chunk).
cf["SDAT"].write(b'Hello World!')
# !!! Attention !!!
# Both types of treatment use the same methods,
# namely that if you open a chunk file in read-only mode,
# and if the chunk is not in the chunk file,
# he will try to create a chunk,
# but he will not be able to do this and will give a `IONotWritableError`.
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)]
Metadata
Release files for pychunker 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pychunker-1.4.1.tar.gz | 7.0 kB | Without provenance | Details for pychunker-1.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pychunker-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for pychunker-1.4.1-py3-none-any.whl |
Total release size: 17.8 kB
Release files / pychunker-1.4.1.tar.gz
| Download URL | pychunker-1.4.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ee8f081fe85848009d8c1f5a0571fa04cb6fb0c802a458a182b5333b6c741c7
|
|
BLAKE2b-256 checksum How to use checksums |
b34e93975a20e141a6ce5d8fda7aaad5598c84006d83f9e70df35bf84175d079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.13 Windows/10
|
Release files / pychunker-1.4.1-py3-none-any.whl
| Download URL | pychunker-1.4.1-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c00962482d00f8c4215fd512b74d131fc82ed179e402bfbe07a0260aeaab358
|
|
BLAKE2b-256 checksum How to use checksums |
85ac3aa855fb4f4d89fa7a0ed64c04f7aa1abfc81bef2b1b9213b4a560dadf3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.13 Windows/10
|
Security for pychunker 1.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.