Skip to main content

Password Generator App

A clean and lightweight password generator built with PySide6 and Python.
The project provides both a graphical user interface and a command-line interface.

Features

  • Simple Material-style GUI
  • Dark and light themes
  • Accent color selection
  • Password generation with configurable character groups
  • Clipboard copy
  • Persistent local settings stored beside the project
  • CLI support for terminal-based use
  • Small, readable UI with responsive spacing

Screenshots

CLI

CLI screenshot

GUI

GUI screenshot

Installation

From source

pip install -r requirements.txt
pip install -e .

From PyPI

pip install password-generator-app

Run the application

The main command is passgen.
The alias password-generator is also available after installation.

From a local source checkout without installation

$env:PYTHONPATH = "src"
python -m password_generator_app.cli gui
python -m password_generator_app.cli --length 32 --copy

After installation

passgen gui
passgen --length 32 --copy
password-generator gui
password-generator --length 32 --copy

Direct module execution

python -m password_generator_app.cli gui
python -m password_generator_app.cli --length 32 --copy

GUI usage

Launch the graphical interface:

passgen gui

Or:

password-generator gui

The GUI allows you to:

  • Generate secure passwords visually
  • Configure character groups
  • Set minimum character counts
  • Switch between dark and light themes
  • Customize accent colors
  • Copy passwords directly to the clipboard

CLI usage

Generate a password with default settings:

passgen

Generate a password with a custom length and copy it to the clipboard:

passgen --length 32 --copy

Show help:

passgen -h

The same CLI commands can also be executed with:

password-generator

CLI options

  • --length, -l — password length
  • --lowercase / --no-lowercase
  • --uppercase / --no-uppercase
  • --digits / --no-digits
  • --punctuation / --no-punctuation
  • --min-lowercase
  • --min-uppercase
  • --min-digits
  • --min-punctuation
  • --copy, -c — copy the generated password to the clipboard

Python API

You can also use the generator directly from Python code:

from password_generator_app.core.password_generator import (
    PasswordGenerator,
    PasswordConfig,
)

config = PasswordConfig(
    length=18,
    include_lowercase=True,
    include_uppercase=True,
    include_digits=True,
    include_punctuation=True,
    min_lowercase=3,
    min_uppercase=3,
    min_digits=3,
    min_punctuation=3,
)

password = PasswordGenerator(config)

for _ in range(5):
    print(password.generate())

Settings

The application stores its settings in the project directory as settings.json.

Saved values include:

  • theme
  • accent color
  • window size
  • password generation options

Project Structure

password_generator_app_v1/
├── imgs/
├── scripts/
│   ├── cleanup.ps1
│   ├── build.ps1
│   ├── rebuild.ps1
│   └── rebuild.bat
├── src/
│   └── password_generator_app/
├── tests/
├── CHANGELOG.md
├── LICENSE
├── MANIFEST.in
├── pyproject.toml
└── README.md

Windows Batch Launcher

You can place passgen.bat inside your commands folder and update the project path in the file.
After that, the app can be launched directly from the terminal without installing the package.

passgen gui
passgen --length 32 --copy
password-generator gui
password-generator --length 32 --copy

Running Tests

Install pytest:

pip install pytest

Run all tests:

pytest -v

The project includes:

  • Core password generator tests
  • Validation tests
  • CLI tests

Development Utilities

Rebuild local package

Run the complete local development workflow:

powershell -ExecutionPolicy Bypass -File .\scripts\rebuild.ps1

Or:

.\scripts\rebuild.bat

This process will:

  • Clean the project
  • Remove old local installations
  • Run tests
  • Build package distributions
  • Validate distributions using Twine
  • Reinstall the latest local build

Author

Developed by Vahed MamGhaderi

License

This project is licensed under the MIT License.

See the LICENSE file for details.

Metadata

Release files for password-generator-app 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for password-generator-app 1.0.0
File Size Uploaded Provenance Actions
password_generator_app-1.0.0.tar.gz 872.4 kB Without provenance Details for password_generator_app-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for password-generator-app 1.0.0
File Interpreter ABI Platform Actions
password_generator_app-1.0.0-py3-none-any.whl Python 3 none any Details for password_generator_app-1.0.0-py3-none-any.whl

Total release size: 887.9 kB

Release files / password_generator_app-1.0.0.tar.gz

Download URL password_generator_app-1.0.0.tar.gz
Size 872.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c8b2c64e24ce30dd3fc9876723bbf59b8b2b0a5e300b5574e02e8a4d48cd845e
BLAKE2b-256 checksum
How to use checksums
2d5c845cd328c2da9f292a1f4980e5da19baf32bfded0e805e68baff4806d173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / password_generator_app-1.0.0-py3-none-any.whl

Download URL password_generator_app-1.0.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7308858b1254e30231fc0e95ab5f77f0e2a60f8c8c3e90f96cd2b99820583ddd
BLAKE2b-256 checksum
How to use checksums
a68db374b892d902c5aa12bf8c122dc83e623470d14707e3463deaecdfa8e629
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for password-generator-app 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page