Skip to main content

Cryptographically secure, preset-based password generation. Zero config. Zero dependencies.

Project description

password-presets (Python)

Cryptographically secure, preset-based password generation.
Zero third-party dependencies (uses the standard library secrets module).

Full documentation (presets, security notes, cross-language parity) lives in the repository README.

Layout

Path Role
pyproject.toml Project metadata and build (Hatchling)
password_presets/__init__.py Public API: generate, inspect, presets
password_presets/__main__.py CLI entry point
password_presets/presets.py Preset definitions
password_presets/generate.py Character and passphrase generation
password_presets/inspect_.py Preset metadata and entropy helpers
password_presets/wordlist.py EFF large wordlist

Tests for this package live in ../tests/ at the repository root.

Install

From PyPI:

pip install password-presets

From a clone of this repo (from the repository root):

pip install ./py

Or install in editable mode while developing:

pip install -e ./py

Usage

from password_presets import generate, inspect, presets

generate("human")
inspect("human")
presets()

CLI

password-presets
password-presets token --count 3
password-presets --list
python -m password_presets passphrase

Requirements

  • Python ≥ 3.11

Development

Run tests from this directory so pyproject.toml and pythonpath apply:

cd py
pytest

Build a wheel:

cd py
python -m build

Publish (maintainers): build and upload the artifacts produced under py/dist/.

Project details


Download files

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

Source Distribution

password_presets-1.0.4.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

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

password_presets-1.0.4-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file password_presets-1.0.4.tar.gz.

File metadata

  • Download URL: password_presets-1.0.4.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for password_presets-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3596d5bbb95cfbe6cd94bee2f6a79da30ff8aea8f57cc19131a57fff77df569a
MD5 563c2381f940788a6fb2ca388ed4d777
BLAKE2b-256 9e09803c756f78b25bd75571233ca30761e62b3d8b2dd9b9f3b915ad6698bfc8

See more details on using hashes here.

File details

Details for the file password_presets-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for password_presets-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0b94812c911aeb933ea8ade9397e8b91811451aa520e750ee014ba40acdf2c5e
MD5 3de699168498ba4558c8d9fc6490bb49
BLAKE2b-256 853b478d08cc6b23699685cd38018a8a484c522ac13248e1c2203279a8302a09

See more details on using hashes here.

Supported by

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