usernamegen package

Submodules

usernamegen.Generator module

Wordlist based Markov chain username generator.

class usernamegen.Generator.Generator(words, size, min)[source]

Generates random usernames based on a wordlist and formatters.

getString()[source]

Return a randomly generated username.

Returns:Randomly generated username
Rtype size:str
getWords()[source]

Return randomly generated words.

Returns:Letters that need to match
Rtype size:list
setFormatters(formatters)[source]

Set the formatters.

Parameters:formatters (list) – List of formatters and their weight

usernamegen.MarkovChain module

Implementation of a Markov chain.

class usernamegen.MarkovChain.MarkovChain(words, size)[source]

Markov chain.

getWord()[source]

Get a word.

Returns:A generated word
Return type:str

Module contents