News for hackers. Stuff that matters.

Show HN: Chonker a Python package for data chunking

https://pypi.org/project/chonkify/

I created chonker to avoid indexing errors from writing index%chunsize. I considered using the standard approach of returning data chunks but find it more difficult to read for my common use case of checkpointing. Chonker returns a chonk data structure that can be used to make decisions when processing a chunk of data.
( 1 comment | on HN )
Re:Show HN: Chonker a Python package for data chunking by knighthack on Monday July 24, 2023 @08:00AM (#36846486)
I love the name! However, this does seem to replicate some of the feature set of more-itertools: https://pypi.org/project/more-itertools/