
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
A powerful and flexible text-to-EPUB conversion tool that transforms plain text files into standard EPUB e-book format with advanced features for content processing and validation.
pip install myepubapp
git clone https://github.com/eyes1971/myepubapp.git
cd myepubapp
pip install -r requirements.txt
pip install -e .
myepubapp -i input.txt --output-epub output.epub
Automatic Title Generation: Book titles are automatically generated from input filenames (e.g., my_book.txt
becomes "My Book")
myepubapp -a input.txt --input-epub existing.epub --output-epub updated.epub
myepubapp -v --input-epub file.epub
Option | Short | Description |
---|---|---|
--init | -i | Initialize mode: create new EPUB file |
--append | -a | Append mode: add chapters to existing EPUB |
--validate | -v | Validate EPUB file format and structure |
input_file | Input text file path (not required for validate mode) | |
--input-epub | -ie | Existing EPUB file (required for append/validate modes) |
--output-epub | -o | Output EPUB file path |
--convert-tags | -ct | Convert <> tags to Chinese book title marks 《》 |
--cover | -c | Path to cover image file |
Text files should use special marker symbols for chapter organization:
※☆ Introduction Title
This is the introduction content.
It can span multiple paragraphs and will be displayed as a separate introduction page.
※ⅰ Chapter 1 Title
Chapter content goes here...
Multiple paragraphs are supported.
※ⅱ Chapter 1 Section 1
Subsection content...
※ⅲ Chapter 1 Section 1 Subsection 1
Deeper level content with full formatting support.
※☆
: Introduction page (creates separate intro page)※ⅰ
: Level 1 chapter (h1 heading)※ⅱ
: Level 2 chapter (h2 heading)※ⅲ
: Level 3 chapter (h3 heading)myepubapp -i sample.txt --output-epub mybook.epub
myepubapp -i sample.txt --output-epub mybook.epub --convert-tags
myepubapp -i sample.txt --output-epub mybook.epub --cover cover.jpg
myepubapp -a chapter2.txt --input-epub mybook.epub --output-epub mybook_updated.epub
myepubapp -v --input-epub mybook.epub
myepubapp/
├── core/ # Core business logic
│ ├── __init__.py
│ ├── book.py # EPUB book management
│ ├── chapter.py # Chapter data structures
│ └── metadata.py # EPUB metadata handling
├── generators/ # Content generation modules
│ ├── __init__.py
│ ├── content.py # Content processing and chapter generation
│ └── toc.py # Table of contents generation
├── utils/ # Utility modules
│ ├── __init__.py
│ ├── epub_validator.py # EPUB format validation
│ ├── file_handler.py # File I/O operations
│ ├── logger.py # Logging configuration
│ └── text_processor.py # Text processing utilities
├── exceptions/ # Custom exception classes
│ ├── __init__.py
│ └── epub_exceptions.py # EPUB-specific exceptions
├── cli.py # Command-line interface
├── __init__.py # Package initialization
└── py.typed # Type hints marker
ebooklib>=0.18.0
: Core EPUB file processing and manipulationbeautifulsoup4>=4.12.0
: HTML/XML parsing and manipulationThe built-in EPUB validator checks:
All operations are logged with configurable verbosity. Logs are written to:
logs/myepubapp.log
file (detailed operation logs)We welcome contributions! Please feel free to:
git clone https://github.com/yourusername/myepubapp.git
python -m venv venv
source venv/bin/activate
(Linux/Mac) or venv\Scripts\activate
(Windows)pip install -r requirements.txt
pip install -e .
python -m pytest
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
src/myepubapp/core/book.py
module:_extract_chapters_from_epub()
and merge_existing_epub_with_new_chapters()
build_toc_level()
function to prevent chapter skipping<ol>
elements in nav.xhtml causing epubcheck validation failuresVersion: 1.0.4 Author: Sam Weng Repository: https://github.com/eyes1971/myepubapp
FAQs
A powerful text-to-EPUB conversion tool
We found that myepubapp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.