Pyth.7z

It supports AES-256 encryption, multi-volume archives, and modern compression algorithms like ZStandard and LZMA. 2. Basic Guide to Commands

How to read contents of 7z file using python - Stack Overflow pyth.7z

You can use py7zr either as a Python script or directly through the command line (CLI). It supports AES-256 encryption