Metadata-Version: 2.4
Name: epubchapterize
Version: 0.1.9
Summary: A Python package for parsing chapters from EPUBs.
Author-email: Matthew Grant <nzmattgrant@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/nzmattgrant/epubchapterize
Project-URL: Documentation, https://github.com/nzmattgrant/epubchapterize/wiki
Project-URL: Source, https://github.com/nzmattgrant/epubchapterize
Project-URL: Tracker, https://github.com/nzmattgrant/epubchapterize/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: annotated-types==0.7.0
Requires-Dist: beautifulsoup4==4.13.3
Requires-Dist: blis==1.3.0
Requires-Dist: bs4==0.0.2
Requires-Dist: build==1.3.0
Requires-Dist: catalogue==2.0.10
Requires-Dist: certifi==2025.1.31
Requires-Dist: charset-normalizer==3.4.1
Requires-Dist: click==8.1.8
Requires-Dist: cloudpathlib==0.21.0
Requires-Dist: confection==0.1.5
Requires-Dist: cymem==2.0.11
Requires-Dist: EbookLib==0.18
Requires-Dist: idna==3.10
Requires-Dist: importlib_metadata==8.7.0
Requires-Dist: Jinja2==3.1.6
Requires-Dist: joblib==1.4.2
Requires-Dist: langcodes==3.5.0
Requires-Dist: language_data==1.3.0
Requires-Dist: lxml==5.3.2
Requires-Dist: marisa-trie==1.2.1
Requires-Dist: markdown-it-py==3.0.0
Requires-Dist: MarkupSafe==3.0.2
Requires-Dist: mdurl==0.1.2
Requires-Dist: murmurhash==1.0.12
Requires-Dist: nltk==3.9.1
Requires-Dist: numpy==2.0.2
Requires-Dist: packaging==24.2
Requires-Dist: preshed==3.0.9
Requires-Dist: pydantic==2.11.3
Requires-Dist: pydantic_core==2.33.1
Requires-Dist: Pygments==2.19.1
Requires-Dist: pyproject_hooks==1.2.0
Requires-Dist: regex==2024.11.6
Requires-Dist: requests==2.32.3
Requires-Dist: rich==14.0.0
Requires-Dist: shellingham==1.5.4
Requires-Dist: six==1.17.0
Requires-Dist: smart-open==7.1.0
Requires-Dist: soupsieve==2.6
Requires-Dist: spacy==3.8.7
Requires-Dist: spacy-legacy==3.0.12
Requires-Dist: spacy-loggers==1.0.5
Requires-Dist: srsly==2.5.1
Requires-Dist: syntok==1.4.4
Requires-Dist: thinc==8.3.6
Requires-Dist: tomli==2.2.1
Requires-Dist: tqdm==4.67.1
Requires-Dist: typer==0.15.2
Requires-Dist: typing-inspection==0.4.0
Requires-Dist: typing_extensions==4.13.1
Requires-Dist: urllib3==2.4.0
Requires-Dist: wasabi==1.1.3
Requires-Dist: weasel==0.4.1
Requires-Dist: wrapt==1.17.2
Requires-Dist: zipp==3.23.0
Dynamic: license-file

# 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:

```bash
pip install epubchapterize
```

## Usage

Here is an example of how to use EpubChapterize:

```python
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  
