Base class for all importers
EXAMPLES:
>>> sample_importer
<quill.importer.quill_importer.QuillImporter object at 0x...>
Bases: object
Return the creation time in milliseconds.
Return type: | integer |
---|
You should overriding this method in derived classes. Otherwise the current time will be used.
EXAMPLES:
>>> sample_importer.ctime_millis()
1355064642000
Create a Book object from the importer.
Return type: | a Book object |
---|
You should not override this method. All it does is takes the metadata and creates the corresponding book object.
EXAMPLES:
>>> sample_importer.get_book()
Book title: Example Notebook
Uuid: 1fd6a485-33ed-4a45-a5a1-e06e55fdca57
Created ...
Last modified ...
Return the n-th page.
Return type: | a Page object |
---|
Must be implemented in derived classes.
EXAMPLES:
>>> sample_importer.n_pages()
3
Return the last modification time in milliseconds.
Return type: | integer |
---|
You should overriding this method in derived classes. Otherwise the current time will be used.
EXAMPLES:
>>> sample_importer.mtime_millis()
1355065045000
Return the number of pages.
Return type: | integer |
---|
Must be implemented in derived classes.
EXAMPLES:
>>> sample_importer.n_pages()
3