PyPOTD CLI
Description
Using the pypotd library, pypotd-cli is a command-line tool to generate single or multiple ARRIS/CommScope-compatible password-of-the-day strings using a default or custom seed. Output defaults to JSON. Output can be written to a file, and will not output to console unless also provided with the verbose flag.
Installation
pip install pypotd-cli
Usage
usage: python -m pypotd-cli [-d DATE] [-D] [-f {json,text}] [-h] [-o OUT_FILE] [-r START END] [-s SEED] [-v]
Password-of-the-Day Generator for ARRIS/CommScope Devices
options:
-d DATE, --date DATE generate a password for the given date
-D, --des output des representation of seed
-f {json,text}, --format {json,text} password output format, either text or json
-h, --help show this help message and exit
-o OUT_FILE, --out-file OUT_FILE password or list will be written to given filename
-r START END, --range START END generate a list of passwords given start and end dates
-s SEED, --seed SEED string of 4-8 characters, used in password generation to mutate output
-v, --verbose print output to console even when writing to file
If your seed uses special characters, you must surround it with quotes
Examples
Print password for current day using custom seed
$ python -m pypotd-cli -s test
{
"09/27/23": "FP8992KBS5"
}
Print DES for a custom seed
$ python -m pypotd-cli -s test -D
{
"DES": "CD.7D.DE.86.D7.04.4A.85"
}
Write a list of passwords to a file and print to console
$ python -m pypotd-cli -s test -r 2023-09-27 2023-09-30 -o range.json -v
{
"09/27/23": "FP8992KBS5",
"09/28/23": "JUSHXQ2S9O",
"09/29/23": "9OTOUA0UI3",
"09/30/23": "EDU83VUHE5"
}
$ cat ./range.json
{
"09/27/23": "FP8992KBS5",
"09/28/23": "JUSHXQ2S9O",
"09/29/23": "9OTOUA0UI3",
"09/30/23": "EDU83VUHE5"
}
Previous example, but with formatted text output
$ python -m pypotd-cli -s test -r 2023-09-27 2023-09-30 -o range.txt -v -f text
09/27/23: FP8992KBS5
09/28/23: JUSHXQ2S9O
09/29/23: 9OTOUA0UI3
09/30/23: EDU83VUHE5
$ cat ./range.txt
09/27/23: FP8992KBS5
09/28/23: JUSHXQ2S9O
09/29/23: 9OTOUA0UI3
09/30/23: EDU83VUHE5
Release files for pypotd-cli 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypotd-cli-0.2.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypotd_cli-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / pypotd-cli-0.2.tar.gz
| Download URL | pypotd-cli-0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbc5ee83974c7110347b14a0fbcc54cd4b2a74281907fe039893ea4bfaf72c1e
|
|
BLAKE2b-256 checksum How to use checksums |
a14e93279342002c8d6e353757af366551d0250bb701a7bfbf930f834011c3b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pypotd_cli-0.2-py3-none-any.whl
| Download URL | pypotd_cli-0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
628bd99e39f21e4a8ae5d1300f05febd37458fb08ad8de73146696ab5f30e487
|
|
BLAKE2b-256 checksum How to use checksums |
ccd2a890a7f2fcd8d0231dc9de3c81dd89ebdd6b4dfd7644f02e605075911302
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|