# Maintaining the chunk module after it has been removed from the standard library

**URL:** <https://discuss.python.org/t/maintaining-the-chunk-module-after-it-has-been-removed-from-the-standard-library/38177>\
**Category:** Core Development\
**Tags:** stdlib\
**Created:** [November 5, 2023, 3:06am UTC](https://discuss.python.org/t/maintaining-the-chunk-module-after-it-has-been-removed-from-the-standard-library/38177 "2023-11-05T03:06:16Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![notatallshaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/notatallshaw/32/10861_2.png) [@notatallshaw](https://discuss.python.org/u/notatallshaw)\
**Post date:** [November 8, 2023, 11:31pm UTC](https://discuss.python.org/t/maintaining-the-chunk-module-after-it-has-been-removed-from-the-standard-library/38177/17 "2023-11-08T23:31:15Z")

</div>

Btw there was some discussion in other threads on the best way to extract modules from the standard library into a different repo, e.g.

> [@PEP 594, take 2: Removing dead batteries from the standard library](https://discuss.python.org/t/pep-594-take-2-removing-dead-batteries-from-the-standard-library/13508/34):
>
> The commands I used to start [GitHub - jackrosenthal/python-cgi: Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594](https://github.com/jackrosenthal/python-cgi) : git clone https://github.com/python/cpython cd cpython git filter-repo --force --path Lib/cgi.py --path Lib/cgitb.py --path LICENSE --path Doc/library/cgitb.rst --path Doc/library/cgi.rst git mv Lib/cgi.py cgi.py git mv Lib/cgitb.py cgitb.py mkdir docs git mv Doc/library/cgi.rst docs/cgi.rst git mv Doc/library/cgitb.rst docs/cgitb.rst git commit -m "M…

> [@PEP 594 has been implemented: Python 3.13 removes 20 stdlib modules](https://discuss.python.org/t/pep-594-has-been-implemented-python-3-13-removes-20-stdlib-modules/27124/3):
>
> Thanks so much for the terrific summary, Victor, and all your detailed notes! My advice—just use Git Filter-Repo. It’s [officially recommended by Git itself over Git filter-branch](https://git-scm.com/docs/git-filter-branch#_warning), and is an order of magnitude (or more) faster, more powerful and easier to use. In the past I used git filter-branch and BFG (a previously popular tool for this) back when GFR was not maintained, but it was just a nightmare that took a large chunk of a day just to extract a few files in one directory. I actually fou…

---

_[View the full topic](https://discuss.python.org/t/maintaining-the-chunk-module-after-it-has-been-removed-from-the-standard-library/38177)._
