Skip to main content

EPUB Simplifier

Test PyPI Version PyPI - Python Version Coverage Code style: black

Description

EPUB Simplifier is a command-line tool designed to convert text within EPUB files into a simplified language at a selected proficiency level. This tool aims to make literature more accessible to language learners by simplifying complex language structures and vocabulary.

[!WARNING] It uses OpenAI API and requires an API key to work, which is not provided with the package. It can also be quite expensive to use, depending on the size of the book.

Motivation

The idea for this tool was inspired by the need to make literature more accessible to language learners. Many language learners struggle to read books in their target language due to the complexity of the language used in literature. This tool addresses this issue by simplifying the language used in books to make them more accessible to language learners at different proficiency levels.

In particular, for the Dutch language, there is a lack of literature in accessible language in electronic format. Having the text on an e-book allows using built-in dictionaries and other tools to help comprehensively understand the text.

Installation

To install EPUB Simplifier, follow these steps:

pip install epub-simplifier

Usage

After installation, you can use the EPUB Simplifier tool directly from your command line. The basic command structure is as follows:

export OPENAI_API_KEY=your_api_key

Optionally, set the organization ID if you have one:

export OPENAI_ORG_ID=your_org_id

Run the command:

epub-simplify --help

Example Command

epub-simplify original_book.epub simplified_book.epub Dutch B1

This command will read original_book.epub, simplify its contents, and save the result as simplified_book.epub.

Requirements

The dependencies will be installed automatically during the package installation process.

Feedback and Contributions

Your feedback and contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue on the GitHub repository or submit a pull request with your changes.

License

MIT

Metadata

Release files for epub-simplifier 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epub-simplifier 0.0.5
File Size Uploaded
epub_simplifier-0.0.5.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for epub-simplifier 0.0.5
File Interpreter ABI Platform
epub_simplifier-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / epub_simplifier-0.0.5.tar.gz

Download URL epub_simplifier-0.0.5.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3640e786e43a900c98a0df539cc442e461244ccdc33a326ac685e8dff7d49861
BLAKE2b-256 checksum
How to use checksums
77e8b93e34e44eec9ee8a4e5298455b0c9a4facbc2ffe4c5b3bbea7771c63954
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / epub_simplifier-0.0.5-py3-none-any.whl

Download URL epub_simplifier-0.0.5-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62e041e5851681c7a85b6233081b2370bf8722477309b4b9a37874975dd29c18
BLAKE2b-256 checksum
How to use checksums
cb83f1a51e8c3ca66a744e2a29dc3fecbb4eb52173c236ad71b87e379c71bb4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page