The @book decorator is used to identify a class as a book.
@book
@book(*args, **kwargs) class BookClass: """ A sample book. Author: Kognitos """ # Book implementation here
id
str
A unique identifier for the Book.
icon
Path to an icon representing the Book. If not provided, a default icon will be used.
name
The name of the Book. If not provided, the name will be inferred from the class name.
noun_phrase
The book noun phrase.
If an icon is not specified, this will be used as the default.
Last updated 6 months ago
Was this helpful?
@book(name="Twilio", icon="data/twilio.svg") class TwilioBook: """ The Twilio Book enables users to interact with the Twilio API. """ ...