epub2txt 



Convert epub to txt with additonal utils
Installation
pip install epub2txt
# pip install epub2txt -U # to upgrade
Fixes
- More resilent to mismatched tags
- Added
epub2txt.content_titles, useful for creating metada when needed
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)
# output as a list of chapters
ch_list = epub2txt(filepath, outputlist=True)
# chapter titles will be available as epub2txt.content_titles if available
TODO
- Batch conversion of several epub files
Metadata
Release files for epub2txt 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| epub2txt-0.1.6.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| epub2txt-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / epub2txt-0.1.6.tar.gz
| Download URL | epub2txt-0.1.6.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7012199839982c01d02ed8b527311465004d8275cc894ae0597bb0d4ccac65f8
|
|
BLAKE2b-256 checksum How to use checksums |
c6fbf23228c10ae6675ec5e92b692c45ec504403dee9e7e3a765eb4bb5d46bd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.10 Windows/10
|
Release files / epub2txt-0.1.6-py3-none-any.whl
| Download URL | epub2txt-0.1.6-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7af37cc261afe5d841d4e418f9da2903a0fdf44ba1800d74d850471caa4a0b6
|
|
BLAKE2b-256 checksum How to use checksums |
cdb24ff4b0f2d7d3382ee8b258c3633ef8b6e8228e0b8c3e61eaba14f3584f66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.10 Windows/10
|