python / cpython

The Python programming language
https://www.python.org
Other
62.37k stars 29.96k forks source link

Allow third party libraries to provide new zipfile compression methods #113767

Open gpshead opened 8 months ago

gpshead commented 8 months ago

Feature or enhancement

Proposal:

The zipfile module comes with a few compression methods supported in the standard library. However we never provided a way for new methods to be added by third parties. We should, (a) so that we don't need to add every popular compression method to the stdlib and (b) so that people with more optimal implementations of our existing compressors can use their own implementations instead.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

ronaldoussoren commented 8 months ago

See also: https://github.com/python/cpython/issues/103412, an issue about adding support for reading older zipfile formats (compression methods)