7.1.2.1. Book

class BookBrowser.Book.Book.Book(path, extension=None)[source]

Bases: object

EXTENSIONS = ('.png', '.jpg', '.jpeg', '.webp', '.tiff')
__book_page_cls__

alias of BookBrowser.Book.BookPage.BookPage

__getitem__(page_number)[source]
__init__(path, extension=None)[source]

Initialize self. See help(type(self)) for accurate signature.

__iter__()[source]
__len__()[source]
_get_pages()[source]
_guess_extension()[source]
_list_dir
_load_metadta()[source]
_logger = <Logger BookBrowser.Book.Book.Book (WARNING)>
_test()[source]
add_page(filename)[source]
check()[source]
extension
first_page
fix_empty_pages()[source]
flip_from_page(page_number, orientation)[source]
iter_by_mtime()[source]
iter_by_page_number()[source]
joinpath(filename)[source]
last_page
last_page_number

Last page number or index

metadata
metadata_path
number_of_digits
number_of_pages
path
remove_page_number()[source]
renumerate_pages(dry_run=False, iter_by_mtime=False)[source]
save_metadata()[source]
set_orientation(positive_delta=True)[source]