py7zr

is a library and utility to support 7zip archive compression,
decompression, encryption and decryption written by Python programming
language.

py7zr supports algorithms and filters which lzma module and liblzma
support, and supports BZip2 and Deflate that are implemented in python
core libraries, It also supports ZStandard, Brotli and PPMd with third
party libraries.

py7zr is also able to encrypt and decrypt data using 3rd party
encryption library.


Supported algorithms
compress
 LZMA2
 LZMA
 Bzip2
 Deflate
 Copy
 ZStandard
 Brotli
 PPMd
 Enhanced Deflate (Experimental) (not on SBo)

crypt
 7zAES
Filters
 Delta
 BCJ(X86,ARMT,ARM,PPC,SPARC,IA64)
