Binary package “python3-pampy” in ubuntu noble
Python module for simple PAM authentications (Python 3)
Provide an authenticate() function that will allow the caller to
authenticate a user against the Pluggable Authentication Modules
(PAM) on the system.
.
The module pam.py is a single file, implemented using ctypes, so
no compilation is necessary. This package provides the pam.py
module for Python 3.