Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epubkit-0.1.0.post202512131532.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epubkit-0.1.0.post202512131532-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

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

Hashes for epubkit-0.1.0.post202512131532.tar.gz
Algorithm Hash digest
SHA256 40330eff5d3010f7b08379b93dd1b285273a0b8a852a634b912ddd70b63f580b
MD5 428615ede2dd553e6e9981e99871776b
BLAKE2b-256 b117d439870dae62276e23c2e1fff6761bdf2b96a08e2ebb0078943d029a31e2

See more details on using hashes here.

File details

Details for the file epubkit-0.1.0.post202512131532-py3-none-any.whl.

File metadata

File hashes

Hashes for epubkit-0.1.0.post202512131532-py3-none-any.whl
Algorithm Hash digest
SHA256 d95e810c6eda7f2086aa7b01f5960d00f9b03f902f0753579fd228dd95892284
MD5 e800970668c8bf665fa8eb1354e3f622
BLAKE2b-256 c0925ac5f16ee9bfb5e9e8195d8a547c008b85f10357878e6ab6ae2f77a35d02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page