Metadata-Version: 2.1
Name: txt2ebook
Version: 0.1.11
Summary: Console tool to convert txt file to different ebook format
Home-page: https://github.com/kianmeng/txt2ebook
License: AGPL-3.0-or-later
Keywords: txt,ebook,epub
Author: Kian-Meng Ang
Author-email: kianmeng@cpan.org
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Natural Language :: Chinese (Traditional)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Text Processing :: General
Requires-Dist: CJKwrap (>=2.2,<3.0)
Requires-Dist: EbookLib (>=0.17.1,<0.18.0)
Requires-Dist: bs4 (>=0.0.1,<0.0.2)
Requires-Dist: cchardet (>=2.1.7,<3.0.0)
Requires-Dist: click (>=8.0.1,<9.0.0)
Requires-Dist: configuror (>=0.2.0,<0.3.0)
Requires-Dist: langdetect (>=1.0.9,<2.0.0)
Requires-Dist: loguru (>=0.5.3,<0.6.0)
Project-URL: Repository, https://github.com/kianmeng/txt2ebook
Description-Content-Type: text/markdown

# txt2ebook

Console tool to convert txt file to different ebook format.

## Installation

From PyPI:

```
pip install txt2ebook
```

## Usage

Showing help message:

```bash
$ 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:

```bash
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/>.

