Now after all that, is when I'll mention that I feel that using bs4/lxml parsing/serializing for simple changes/additions to an epub's metadata is considerable overkill. Like using a scalpel to peel an orange. Unless I'm planning on writing a plugin that grants a user considerable autonomy over making complex metadata edits, I'm using a quick regex to make the change I need and moving on. But to each their own.
|