Console tool to convert txt file to different ebook format
Project description
txt2ebook
Console tool to convert txt file to different ebook format.
Installation
From PyPI:
pip install txt2ebook
Usage
Showing help message:
$ txt2ebook --help
Usage: txt2ebook [OPTIONS] INPUT_FILE [OUTPUT_FILE]
Console tool to convert txt file to different ebook format.
Options:
-f, --format TEXT Set the export format ebook. [default:
epub]
-t, --title TEXT Set the title of the ebook.
-l, --language TEXT Set the language of the ebook.
-a, --author TEXT Set the author of the ebook.
-c, --cover PATH Set the cover of the ebook.
-d, --debug Enable debugging log.
-nb, --no-backup Do not backup source txt file. [default:
False]
-nw, --no-wrapping Remove word wrapping. [default: False]
-w, --width INTEGER Set the width for line wrapping.
-dr, --delete-regex TEXT Regex to delete word or phrase.
-rr, --replace-regex TEXT... Regex to replace word or phrase.
-dlr, --delete-line-regex TEXT Regex to delete whole line.
--version Show the version and exit.
--help Show this message and exit.
Convert a txt file into epub:
txt2book ebook.txt
Copyright and License
Copyright (c) 2021 Kian-Meng, Ang
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
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
Hashes for txt2ebook-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2361d27c538d6ef78a6ac7ceb23c174e7ddbda50e96699fb9092be061990d92 |
|
MD5 | 1f8a1d14b64d864e6345ad1f60fc0e3f |
|
BLAKE2b-256 | b7116a3ce11430fcf12ed719789a15650e0196c746eeb4c67c5777ca94b58d83 |