Text Data Generator

sample_data_utils.text.text(length, choices='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')[source]

returns a random (fixed length) string

Parameters:
  • length – string length
  • choices – string containing all the chars can be used to build the string

See also

rtext()

sample_data_utils.text.rtext(maxlength, minlength=1, choices='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')[source]

returns a random (variable length) string.

Parameters:
  • maxlength – maximum string length
  • minlength – minimum string length
  • choices – string containing all the chars can be used to build the string

See also

text()

Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.