Password Generator
This Python script provides a function generate_pass that generates a random password with customizable length and character types.
Features
- Customizable Length: Specify the desired length of the password.
- Character Types:
- Uppercase letters (A-Z)
- Lowercase letters (a-z)
- Numbers (0-9)
- Special characters (!, @, #, etc.)
Installation
import mypassgen
Usage
- Import the
generate_passfunction into your Python project. - Call the function with your desired parameters.
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
length |
int |
Length of the password | Required |
uppercase |
bool |
Include uppercase letters (A-Z) | True |
lowercase |
bool |
Include lowercase letters (a-z) | True |
numbers |
bool |
Include numbers (0-9) | True |
special |
bool |
Include special characters (!, @, #, etc.) | False |
Return
str: A randomly generated password.
Example
from mypassgen import generate_pass
# Generate a random password with all default options (length is required)
password = generate_pass(length=8,special=True,uppercase=True,lowercase=True,numbers=False)
print("Random password:", password)
Release files for mypassgen 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mypassgen-2.0.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mypassgen-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / mypassgen-2.0.0.tar.gz
| Download URL | mypassgen-2.0.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72e14d1b609c4ed1b235189664816078047b51cb807bd3a7067e7f9e3f0ba8be
|
|
BLAKE2b-256 checksum How to use checksums |
e00926de62b6e5bc43b967a99285841d3346b0d37231e0eec19fcd7690ae699d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.12
|
Release files / mypassgen-2.0.0-py3-none-any.whl
| Download URL | mypassgen-2.0.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59537af6cda5f1caf7e0716b5de40964d10b1a94214999d7571eb4688047684e
|
|
BLAKE2b-256 checksum How to use checksums |
310b19ebf12f36552d04299cef380330e51b320f64cac37d4c51a25975452abc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.12
|