Skip to content

f0rkz/pywordlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Word List Tool

Correct Horse Battery Staple

Useful for quick random phrase generation. I am using this tool for a wireless captive portal.

Figured someone else could find this tool useful too.

Usage

from pywordlist import WordList
words = WordList(count=5).get_random_words()

This will generate a list of 5 randomly picked words from the EFF Short Wordlist

words now has the following value:

[u'malformed', u'goatskin', u'umpire', u'equipment', u'ardently']

If you want a larger pool, you can switch the list like so:

from pywordlist import WordList
words = WordList(count=5, word_list="https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt").get_random_words()

words now has the following value:

[u'punctual', u'giblet', u'mayflower', u'fifth', u'angling']

Releases

No releases published

Packages

No packages published

Languages