Tiny library to programmatically generate .epub files
Project description
epub-generator
Small library to generate epub files easily
Usage:
from epubgen import EPUB
import xml.etree.ElementTree as ET
book = EPUB("Test EPUB", "author-test", "en")
first_page = ET.Element("p")
first_page.text = "first-page" + 10000 * "hello "
book.add_page(first_page, toc_title="First chapter")
second_page = ET.Element("p")
second_page.text = "second-page" + 10000 * "good morning ! "
book.add_page(second_page, toc_title="Second chapter")
book.generate_epub("test.epub")
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
epubgen-0.4.2.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epubgen-0.4.2.tar.gz.
File metadata
- Download URL: epubgen-0.4.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa890b44932a37bf6025a89832dd29ee08e4ead753e1d7dfcbd305ebb924fb0f
|
|
| MD5 |
7e0ea0a6d8209d128d38e62047615951
|
|
| BLAKE2b-256 |
4cea9a3220f45d1deea61e758c5e838d800aa32f9adeaa3a0cf9352c135f6d7a
|
File details
Details for the file epubgen-0.4.2-py3-none-any.whl.
File metadata
- Download URL: epubgen-0.4.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6ac97a9a24111a46a295867afa74c42bb15cbba2be027de17a5fdeb58115661
|
|
| MD5 |
afa32f3fc9b0474a050a381f2d1cc90b
|
|
| BLAKE2b-256 |
9105d2095c9d5621942a6cdac8f77683239248e1cd1f55eb51caa63ed179c379
|