Skip to main content

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`

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pamela-1.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pamela-1.2.0-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pamela-1.2.0.tar.gz.

File metadata

  • Download URL: pamela-1.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.9

File hashes

Hashes for pamela-1.2.0.tar.gz
Algorithm Hash digest
SHA256 0ea6e2a99dded8c7783a4a06f2d31f5bdcad894d79101e8f09322e387a34aacf
MD5 37d71159f1bc17009ff568fd919c2a4d
BLAKE2b-256 ef1c9d82a11b766bd17a23533a75cd41989f343ffe9c0a1dc31a588546c9bed9

See more details on using hashes here.

File details

Details for the file pamela-1.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pamela-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.9

File hashes

Hashes for pamela-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 27e543f1059bab1d7bc35b322d97705b4653869d1a06fe867d8c2b5206ed9d28
MD5 9769f5b216933109c5c8e80b75d00092
BLAKE2b-256 ec141c52a2a3ca612d77550fef0404a496f080bfd600cf4c7c6a2a8ab4be2dc6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.0

2 files

0.3.0

2 files

0.2.1

3 files

0.2.0

3 files

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page