epub-blocks is a dependency-free Python library for reproducibly extracting ordered, structured text blocks from EPUB 2 and EPUB 3 files. A declarative recipe selects an edition’s XHTML, assigns block types, and generates stable identifiers without edition-specific Python code or a pre-existing output table.