Skip to main content

A password generator based on xkcd.com/936

Project description

ninethreesix

version license made-with-python PyPI download month

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

python-ninethreesix-0.2.1.tar.gz (284.5 kB view hashes)

Uploaded Source

Built Distribution

python_ninethreesix-0.2.1-py3-none-any.whl (286.2 kB view hashes)

Uploaded Python 3

Supported by

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