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")
print(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.2.tar.gz (9.6 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.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: epubchapterize-0.1.2.tar.gz
  • Upload date:
  • Size: 9.6 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.2.tar.gz
Algorithm Hash digest
SHA256 9033399ea175d620c03e8cd77b936e052f7615cfd618a2f52b75e9b8e18c9074
MD5 59098434eae5f1f7a7b5e20e0c96c9ab
BLAKE2b-256 5572573ed85ebecffd6f3f716826ded98012c344ce32a50acdc6cadcf7bcd1c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: epubchapterize-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28b5953292abb8a9b864e80494e71dc03d7d5fc0e5f6c9499ce4ce3c60a48fb7
MD5 4015c496aa222960a209285a203bddd4
BLAKE2b-256 86c8b5022854067da863f3a9fb079b404f4044127bfe8b9e4b2d6e621e287791

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