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
Usage: txt2ebook [OPTIONS] FILENAME
Console tool to convert txt file to different ebook format.
Options:
-t, --title TEXT Set the title of the ebook.
-l, --language TEXT Set the language of the ebook. [default:
en]
-a, --author TEXT Set the author of the ebook.
-d, --debug Enable debugging log.
-nb, --no-backup Do not backup source txt file. [default:
False]
-rw, --remove_wrapping Remove word wrapping. [default: False]
-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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6965a80541a5250a61fc1ae160d780cc0ae3c0a10879dcdf80ddf23456c7f0dd |
|
MD5 | 6a9ba179efb4d148aa90b52864059d1b |
|
BLAKE2b-256 | d628af32bf04a65f8a0b73b546df58226de4a3ef8f250446ca2905bbab2f957a |