wcember / pypub

Python library to programatically create epub files
MIT License
273 stars 41 forks source link

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.

Installation

The current release of pypub is available through pip:

$ pip install pypub

Pypub is currently only compatible with Python 2.

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_epub('OUTPUT_DIRECTORY')

Features

Documentation

Documentation is available at http://pypub.readthedocs.org/en/latest/developer_interface.html

Copyright and License

Copyright (c) 2020 William Cember

Licensed under the MIT License

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.