python-pwdlib
Port variant v13
Summary Modern password hashing for Python (3.13)
Package version 0.2.1
Homepage https://github.com/frankie567/pwdlib
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 03 MAY 2025, 21:25:35 UTC
Port created 03 MAY 2025, 21:25:35 UTC
Subpackage Descriptions
single # pwdlib

Modern password hashing for Python

[build] [codecov] [PyPI version] [Downloads]

[image]

--- **Documentation**: https://frankie567.github.io/pwdlib/ **Source Code**: https://github.com/frankie567/pwdlib --- ## Quickstart ```sh pip install 'pwdlib[argon2]' ` `py from pwdlib import PasswordHash password_hash = PasswordHash.recommended() hash = password_hash.hash("herminetincture") password_hash.verify("herminetincture", hash) # True ``` ## Why `pwdlib`? For years, the de-facto standard to hash passwords was [`passlib`]. Unfortunately, it has not been very active recently and its [maintenance status is under question]. Starting Python 3.13, `passlib` won't work anymore. That's why I decided to start `pwdlib`, a password hash helper for the modern Python era. However, it's **not designed to be a complete replacement** for `passlib`, which supports numerous [hashing algorithms and features]. **✅ Goals** - [x] Provide an easy-to-use wrapper to hash and verify passwords - [x] Support modern and secure algorithms like Argon2 or Bcrypt **❌ Non-goals** - [] Support legacy hashing algorithms like MD5 - [] Implement algorithms directly — we should only rely on existing and battle-tested implementations ## Development ### Setup environment We use [Hatch] to manage the development environment and production build. Ensure it's installed on your system. ### Run unit tests You can run all the tests with: `bash hatch run test ` ### Format the code Execute the following command to apply linting and check typing: `bash hatch run lint ` ### Publish a new version You can bump the version, create a commit and associated tag with one command: `bash hatch version patch ` `bash hatch version minor
Configuration Switches (platform-specific settings discarded)
PY312 OFF Build using Python 3.12 PY313 ON Build using Python 3.13
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Download groups
main mirror://PYPIWHL/01/f3/0dae5078a486f0fdf4d4a1121e103bc42694a9da9bea7b0f2c63f29cfbd3
Distribution File Information
1823dc6f22eae472b540e889ecf57fd424051d6a4023ec0bcf7f0de2d9d7ef8c 8082 python-src/pwdlib-0.2.1-py3-none-any.whl
Ports that require python-pwdlib:v13
python-trytond:v13 Tryton server (3.13)