Skip to main content

ChunkerLib

PyPI version Python versions License CI

Split binary data into fixed-size chunks. Zero dependencies, fully typed, works with any file size thanks to memory views.

Installation

pip install chunkerlib

Quick start

from chunkerlib import DataChunker

data = b"some binary file content"

chunker = DataChunker(data, chunk_size=4)

for chunk_id, chunk in chunker.split():
    print(chunk_id, bytes(chunk))

print(f"{chunker.number_of_chunks} chunks")

Features

  • Zero runtime dependencies
  • Splits bytes and memoryview without copying the data
  • Random access to chunks (get_chunk, get_chunk_range)
  • Static typed, compatible with Python 3.9+

Examples

  • examples/basic_usage.py: split data and reassemble it
  • examples/random_access.py: fetch a single chunk or a range
  • examples/file_chunking.py: split a file on disk into parts

Documentation

See DOCUMENTATION.md for the full API reference.

License

MIT

Metadata

Release files for chunkerlib 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chunkerlib 0.1.0
File Size Uploaded
chunkerlib-0.1.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chunkerlib 0.1.0
File Interpreter ABI Platform
chunkerlib-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / chunkerlib-0.1.0.tar.gz

Download URL chunkerlib-0.1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8509dc2dd83c7e3b64f7fb853f1a56104ad198585cbc16c1a3378f2b1a6a2b8a
BLAKE2b-256 checksum
How to use checksums
a52b5cbb6cd65eea5d2deb05991c0edafd660a61221b0c84d968e191490173b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / chunkerlib-0.1.0-py3-none-any.whl

Download URL chunkerlib-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab75b56105dfbad4ae567a13c3ce6d774af004ed213a630790c3d3db5176da87
BLAKE2b-256 checksum
How to use checksums
7b5408298a14fc0b8631c5d3ea72819070548b4f16aae95d5fd54ff5d4663c20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page