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
File details
Details for the file txt2ebook-0.1.7.tar.gz
.
File metadata
- Download URL: txt2ebook-0.1.7.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Linux/5.11.0-34-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86ded90b9476f68e8afcd947025ff26641b40c3016fd297b132ebfff6afcc24 |
|
MD5 | 7fe2ee67cf123af770e1af76926dd5f7 |
|
BLAKE2b-256 | 5935bcca5cf56479090ba79a0b02cb5d616e0fdba49a75d00909a01d0c3c8d69 |
File details
Details for the file txt2ebook-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: txt2ebook-0.1.7-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Linux/5.11.0-34-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e44ceded7c2fde73404f4f4d47ed49b8b8d643a41950a4e93c7a77e52027a7d |
|
MD5 | 1090540b7f53376e114e819da0584539 |
|
BLAKE2b-256 | c1407dd2da7c5dbf354025c5695b64581f10a337eb4f68aff7657595c97c764c |