Skip to main content

Convert epub to txt with additonal utils

Project description

epub2txt Codacy BadgeCode style: blackLicense: MITPyPI version

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


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.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

epub2txt-0.1.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file epub2txt-0.1.3.tar.gz.

File metadata

  • Download URL: epub2txt-0.1.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Windows/10

File hashes

Hashes for epub2txt-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f011d93ab6aa7e165f5883baf5c5251285a13af28f4524168208b2207eb27dd8
MD5 2eac70f9077f3f6881e7421220d3eaee
BLAKE2b-256 c0714da9a0d9ba755de38110c1cb286542ddc2198215cee45a9213ea0fa099f8

See more details on using hashes here.

File details

Details for the file epub2txt-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: epub2txt-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Windows/10

File hashes

Hashes for epub2txt-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8196ec70aaa49aa7d2cdbab96150930e8d303fa6ff2cdedf40fe196ec343b841
MD5 5bd462a4553bb602d0938df871a18b78
BLAKE2b-256 00fa20cac64c4cdc6500193b14f6162d316115a4defdb4566bd20b5e43975513

See more details on using hashes here.

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