Pamela: yet another Python wrapper for PAM
There seems to be a glut of Python wrappers for PAM that have since been abandoned. This repo merges two separate efforts:
- gnosek/python-pam
- adds wrappers for a few more calls, e.g. opening sessions
- raises PamError on failure instead of returning False, with informative error messages
- simplepam
- adds Python 3 support
- resets credentials after authentication, apparently for kerberos users
Why?
Both projects appear to be abandoned, with no response to issues or pull requests in at least a year, and I need it for JupyterHub.
Use it
Install:
pip install pamela
Test:
python -m pamela -a `whoami`
Release files for pamela 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pamela-1.2.0.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pamela-1.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 14.7 kB
Release files / pamela-1.2.0.tar.gz
| Download URL | pamela-1.2.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ea6e2a99dded8c7783a4a06f2d31f5bdcad894d79101e8f09322e387a34aacf
|
|
BLAKE2b-256 checksum How to use checksums |
ef1c9d82a11b766bd17a23533a75cd41989f343ffe9c0a1dc31a588546c9bed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.9
|
Release files / pamela-1.2.0-py2.py3-none-any.whl
| Download URL | pamela-1.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
27e543f1059bab1d7bc35b322d97705b4653869d1a06fe867d8c2b5206ed9d28
|
|
BLAKE2b-256 checksum How to use checksums |
ec141c52a2a3ca612d77550fef0404a496f080bfd600cf4c7c6a2a8ab4be2dc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.9
|