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
- Import the
epub_chapterizemodule. - Specify the path to your EPUB file.
- Use the
chapterizefunction to process the file and extract its chapters.
Requirements
- Python 3.13 or higher
epub_chapterizepackage 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
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 epubchapterize-0.1.3.tar.gz.
File metadata
- Download URL: epubchapterize-0.1.3.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6cf25ae7e9750bb1424ffabfc96c5fafeacc516120cbd2a48c3cd632bec2c10
|
|
| MD5 |
3b354cd7420ee65e46bf51b0133abb48
|
|
| BLAKE2b-256 |
23aa65f378479cbf704c6223bbf1760b94a5c245f8690ea1ae50b0431c87207a
|
File details
Details for the file epubchapterize-0.1.3-py3-none-any.whl.
File metadata
- Download URL: epubchapterize-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ab2584a7c16e9a1bd1105620bdc8651e27e53d3376f2666b1cdda390f14254
|
|
| MD5 |
f9f237462d42bcc58bbd40ba3b14119e
|
|
| BLAKE2b-256 |
3a64a3b9c6c3543f6f3cbdda0106f622941606eb1b6fb13d41030a7a4ca559c7
|