models
Classes representing documents or content which will be put in EPUB file
-
class librepy.models.Item(id, file, type, content=None)[source]
Part of the publication. Can be XHTML (ex. chapter text), image (ex. cover) or CSS style.
-
class librepy.models.Publication(title, language, identifier, subject=None, description=None, creator=None, publisher=None, date=None, items=None)[source]
Publication that can be converted to appropriate format, ie. EPUB
-
class librepy.models.SerializablePublication(template)[source]
Encapsulates serialization methods
| Variables: | template – Template which will be used to serialize object content into file |
-
serialize(file_path)[source]
Serializes publication to file at given path.
Uses template to generate content of the file.