# 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](https://github.com/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](https://github.com/leonnnn/python3-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](https://github.com/jupyter/jupyterhub).
## Use it
Install:
pip install pamela
Test:
python -m pamela -a `whoami`
Raw data
{
"_id": null,
"home_page": "https://github.com/minrk/pamela",
"name": "pamela",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "pam,authentication",
"author": "Min RK",
"author_email": "benjaminrk@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b0/0c/e89683efb8da719cf856cf8156dd7bc665c59d575035d9b44a229019dc27/pamela-1.1.0.tar.gz",
"platform": null,
"description": "# Pamela: yet another Python wrapper for PAM\n\nThere seems to be a glut of Python wrappers for PAM that have since been abandoned.\nThis repo merges two separate efforts:\n\n- [gnosek/python-pam](https://github.com/gnosek/python-pam)\n - adds wrappers for a few more calls, e.g. opening sessions\n - raises PamError on failure instead of returning False, with informative error messages\n- [simplepam](https://github.com/leonnnn/python3-simplepam)\n - adds Python 3 support\n - resets credentials after authentication, apparently for kerberos users\n\n## Why?\n\nBoth projects appear to be abandoned, with no response to issues or pull requests in at least a year, and I need it for [JupyterHub](https://github.com/jupyter/jupyterhub).\n\n## Use it\n\nInstall:\n\n pip install pamela\n\nTest:\n\n python -m pamela -a `whoami`\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "PAM interface using ctypes",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/minrk/pamela"
},
"split_keywords": [
"pam",
"authentication"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "195d4942d8635958d296ad7a55906bfbc5bdc7296397e30035963f0d7eedf2b5",
"md5": "a6bce958316dcddcc35aaef2fad2eeee",
"sha256": "f4534bba9645665b01adfce0134772b0147faea72c278f67a1a732e7ebd46ec6"
},
"downloads": -1,
"filename": "pamela-1.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "a6bce958316dcddcc35aaef2fad2eeee",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6813,
"upload_time": "2023-06-01T09:44:40",
"upload_time_iso_8601": "2023-06-01T09:44:40.648271Z",
"url": "https://files.pythonhosted.org/packages/19/5d/4942d8635958d296ad7a55906bfbc5bdc7296397e30035963f0d7eedf2b5/pamela-1.1.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b00ce89683efb8da719cf856cf8156dd7bc665c59d575035d9b44a229019dc27",
"md5": "282516018839cda3a46d59fb2a71db4e",
"sha256": "d4b139fe600e192e176a2a368059207a6bffa0e7879879b13f4fcba0163481be"
},
"downloads": -1,
"filename": "pamela-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "282516018839cda3a46d59fb2a71db4e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7654,
"upload_time": "2023-06-01T09:44:42",
"upload_time_iso_8601": "2023-06-01T09:44:42.288459Z",
"url": "https://files.pythonhosted.org/packages/b0/0c/e89683efb8da719cf856cf8156dd7bc665c59d575035d9b44a229019dc27/pamela-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-01 09:44:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "minrk",
"github_project": "pamela",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"lcname": "pamela"
}