Skip to main content

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:
  -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

txt2ebook-0.1.9.tar.gz (22.0 kB view hashes)

Uploaded Source

Built Distribution

txt2ebook-0.1.9-py3-none-any.whl (36.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page