A comprehensive EPUB processing toolkit for Python
Project description
epubkit
A comprehensive EPUB processing toolkit for Python.
Features
- EPUB Reading: Parse EPUB files with support for EPUB2/3 standards
- Table of Contents: Extract and navigate book structure
- Content Access: Read chapters and access metadata
- CFI Support: Canonical Fragment Identifier parsing and generation
- Extensible: Plugin architecture for different content sources
Installation
pip install epubkit
Quick Start
import epubkit
# Open an EPUB file
book = epubkit.open("my_book.epub")
# Access metadata
print(f"Title: {book.title}")
# Navigate chapters
for chapter in book.spine:
print(f"- {chapter['title']}")
# Read content
content = book.read_chapter("chapter1.xhtml")
# CFI support
cfi = epubkit.CFIGenerator.generate_cfi(spine_index, node, offset)
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epubkit-0.1.0.post202512131532.tar.gz.
File metadata
- Download URL: epubkit-0.1.0.post202512131532.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40330eff5d3010f7b08379b93dd1b285273a0b8a852a634b912ddd70b63f580b
|
|
| MD5 |
428615ede2dd553e6e9981e99871776b
|
|
| BLAKE2b-256 |
b117d439870dae62276e23c2e1fff6761bdf2b96a08e2ebb0078943d029a31e2
|
File details
Details for the file epubkit-0.1.0.post202512131532-py3-none-any.whl.
File metadata
- Download URL: epubkit-0.1.0.post202512131532-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d95e810c6eda7f2086aa7b01f5960d00f9b03f902f0753579fd228dd95892284
|
|
| MD5 |
e800970668c8bf665fa8eb1354e3f622
|
|
| BLAKE2b-256 |
c0925ac5f16ee9bfb5e9e8195d8a547c008b85f10357878e6ab6ae2f77a35d02
|