Convert epub to txt with additonal utils
Project description
epub2txt
Convert epub to txt with additonal utils
Installation
pip install epub2txt
# pip install epub2txt -U # to upgrade
Usage
From command line
# convert test.epub to test.txt
epub2txt -f test.epub
# browse for epub file, txt file will be in the same directory as the epub file
epub2txt
# show epub book info: title and toc
epub2txt -i
# show more epub book info: title, toc, metadata, spine (list of stuff packed into the epub)
epub2txt -m
# show epub2txt version
epub2txt -V
python
code
from epub2txt import epub2txt
# from a url to epub
url = "https://github.com/ffreemt/tmx2epub/raw/master/tests/1.tmx.epub"
res = epub2txt(url)
# from a local epub file
filepath = r"tests\test.epub"
res = epub2txt(filepath)
TODO
- Extract a single chapter
- Batch conversion of several epub files
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
epub2txt-0.1.2a0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file epub2txt-0.1.2a0.tar.gz
.
File metadata
- Download URL: epub2txt-0.1.2a0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048edb46c07f01f789a44bc264f52e82abf2da4e8bb933354bad0f6e01742bcd |
|
MD5 | 15f05216ef1bacf1587d76360b7bf37e |
|
BLAKE2b-256 | c3a60037042b733a801d9c0ce9cd0ac488f419820230705bf12c059b74a1b3e9 |
File details
Details for the file epub2txt-0.1.2a0-py3-none-any.whl
.
File metadata
- Download URL: epub2txt-0.1.2a0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9034bc975fcc0ea6622ef06410f327a2cf3ccefce5cb493e0474b631d79a4365 |
|
MD5 | 55aa834fdedc38456ed5bdfe532f2390 |
|
BLAKE2b-256 | 74fd546a3130d5db3489920e3b6897bca767efd6bae4cc1f18d8264b99e8a213 |