A password generator based on xkcd.com/936
Project description
ninethreesix
a password generator
usage
From python::
>>> from ninethreesix import Password
>>> p = Password(num_words=3, min_len=3, max_len=6)
>>> p.as_string()
'whelp-word-out'
Or run the module directly::
$ python -m ninethreesix.password
show-sine-Troy
what's with the name?
See: http://xckd.com/936/
license
The code here is available under the MIT license.
word list
The bundled word list comes from the Moby Word list by Grady Ward, which is listed in the public domain.
The bundled word file is COMMON.TXT, which is:
74,550 common dictionary words (common.txt)
A list of words in common with two or more published dictionaries.
This gives the developer of a custom spelling checker a good
beginning pool of relatively common words.
For the original sources, see: http://www.gutenberg.org/ebooks/3201.
Development
If you want to work on this library, see the development requirements in requirements.in
and install them with pip install -r requirements.txt
. The latter is managed by pip-tools
and can be updated by running pip-compile
.
Bug fixes and new features can be proposed by opening a Pull Request for this repo.
Tests
Run the test suite with pytest --cov
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
Built Distribution
File details
Details for the file python-ninethreesix-0.2.1.tar.gz
.
File metadata
- Download URL: python-ninethreesix-0.2.1.tar.gz
- Upload date:
- Size: 284.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cdd918352567268f8aa13d88d3bb4c7c618d5bdad3a05584417580853d52720 |
|
MD5 | ca1e7f493cbf3bbc5e782b3b56fb7af1 |
|
BLAKE2b-256 | b4e679ed3af51ef93ba2c82c41a26e688011098e31ba9b3e5f92a14d909703da |
File details
Details for the file python_ninethreesix-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: python_ninethreesix-0.2.1-py3-none-any.whl
- Upload date:
- Size: 286.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27827da2ca6fcff088de90c8be899de7ccde688d083011314c1730e573ba4c31 |
|
MD5 | 7b2667a1e65501396623ddc526453edc |
|
BLAKE2b-256 | 8dc2485ba1228ffb085962b44d49f857bc3733be9b5fe588a3daf85bb00c00f1 |