Skip to main content

A Python package for parsing chapters from EPUBs.

Project description

EpubChapterize

EpubChapterize is a Python package designed to help you split EPUB files into chapters programmatically. It provides a simple interface to process EPUB files and extract their chapters for further use. At the moment this is optimized for Project Gutenberg Epub3s and may not work with other types of Epubs. If it doesn't work then please get in touch with your use case.

Installation

Install the package using pip:

pip install epubchapterize

Usage

Here is an example of how to use EpubChapterize:

import epub_chapterize
import os
file_path = os.path.join(os.getcwd(), "Alice-In-Wonderland.epub")
chapters, language, title, author, cover_image = epub_chapterize.chapterize(file_path)

Explanation

  1. Import the epub_chapterize module.
  2. Specify the path to your EPUB file.
  3. Use the chapterize function to process the file and extract its chapters.

Requirements

  • Python 3.13 or higher
  • epub_chapterize package installed via pip

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests to improve the package.

Author

Matthew Grant

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

epubchapterize-0.1.8.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

epubchapterize-0.1.8-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file epubchapterize-0.1.8.tar.gz.

File metadata

  • Download URL: epubchapterize-0.1.8.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for epubchapterize-0.1.8.tar.gz
Algorithm Hash digest
SHA256 9c0366fccafa66824398699f79c1f645fc92de49e6232dec902b6e7592f5b041
MD5 528f0808e6a78b040e2e3bd1dfe32674
BLAKE2b-256 d6a7e64c756864d16d75e9d2cf2e31320a07a147c4f6d0972b66e291a8b07cad

See more details on using hashes here.

File details

Details for the file epubchapterize-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: epubchapterize-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for epubchapterize-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 15dc8547fa8b1a9788b0ea68e3362e5f8c3f731aa86d3e3bce33bffab7c6f166
MD5 64c916290bbb58a8d85bbc6aa721d1ba
BLAKE2b-256 8a1cb1c21de3e6ffe8942b3b1d526e28c0f8bef8f2735fea88d757f7dae38dd4

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