randstr

Sometimes you just want a random string. For those times, there is randstr.

Usage

The default is a 7 character string composed of a-z0-9.

from randstr import randstr

print(randstr())

You can get a longer string by passing in a length argument.

randstr(19)
  • Free software: BSD license