Skip to main content

pypub

Create epub's using Python. Pypub is a Python library to create epub files quickly, without having to worry about the intricacies of the epub specification.

This package was originally forked and re-written based on WCember's Python 2 version, but due to a lack of response has been re-released as a new package to support Python 3.

The codebase has since gone through a few substantial rewrites and operates as its own library moving forward.

Installation

pip install pypub3

Quickstart

import pypub

my_first_epub = pypub.Epub('My First Epub')
my_first_chapter = pypub.create_chapter_from_url('https://en.wikipedia.org/wiki/EPUB')
my_first_epub.add_chapter(my_first_chapter)
my_first_epub.create('./my-first-epub.epub')

Features

  • Pypub is easy to install and has minimal dependencies.
  • Pypub abstracts the epub specification. Create epubs without worrying about what an NCX is.
  • Pypub can create epubs from websites, html files, strings, or a combination of all three.
  • Pypub can clean up poorly formatted and complicated html, so it will show cleanly as a chapter in your book.
  • Pypub creates epubs specifically so they can be converted into Amazon Kindle mobi or azw3 files. Don't know which tags Amazon supports? Don't worry about it because pypub does.
  • Pypub is customizable. Don't like the way pypub sanitizes html files for you ebook? Pypub can be configured with your own sanitation function.
  • Pypub is licensed under the MIT license. Do what you want with it.

Metadata

Release files for pypub3 2.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypub3 2.0.9
File Size Uploaded Provenance Actions
pypub3-2.0.9.tar.gz 414.3 kB Without provenance Details for pypub3-2.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypub3 2.0.9
File Interpreter ABI Platform Actions
pypub3-2.0.9-py3-none-any.whl Python 3 none any Details for pypub3-2.0.9-py3-none-any.whl

Total release size: 830.5 kB

Release files / pypub3-2.0.9.tar.gz

Download URL pypub3-2.0.9.tar.gz
Size 414.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ca7efdc5d8ff43676c0b9f2b8f9b8a6aae126080ba275c2bceaa0bdd53e45cd1
BLAKE2b-256 checksum
How to use checksums
cafa336de19d27d824e69be5ba2724a75a04a2bdb8fa68000d30bf3c332d1840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release files / pypub3-2.0.9-py3-none-any.whl

Download URL pypub3-2.0.9-py3-none-any.whl
Size 416.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd13d66c594bdcf1e2facae406860814233b6880118bd611ec68a18c973ac140
BLAKE2b-256 checksum
How to use checksums
4e2960487dafdc4ff2ba3fb7a85bc5523f7d9f9517911763429babe8d595fcac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Security for pypub3 2.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page