Skip to main content

book Domain

The book domain maps domain keywords to underlying faker implementations.

Faker Documentation

Methods

book.author

Returns a random author name.

No parameters.

Examples:

book.author()

Example return values:

  • "Jack Kerouac"
  • "Jules Verne"

book.format

Returns a random book format.

No parameters.

Examples:

book.format()

Example return values:

  • "Hardcover"
  • "Paperback"

book.genre

Returns a random genre.

No parameters.

Examples:

book.genre()

Example return values:

  • "Western"
  • "Romance"

book.publisher

Returns a random publisher.

No parameters.

Examples:

book.publisher()

Example return values:

  • "Farrar, Straus & Giroux"
  • "Bowes & Bowes"

book.series

Returns a random series.

No parameters.

Examples:

book.series()

Example return values:

  • "The Dresden Files"
  • "The Inheritance Cycle"

book.title

Returns a random title.

No parameters.

Examples:

book.title()

Example return values:

  • "Nineteen Eighty Four"
  • "Bible"