Skip to content
/ libepub Public
forked from JKirchartz/libepub

A Python Library to work with epub format

Notifications You must be signed in to change notification settings

fengli/libepub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libepub

libepub is a simple Python utility to work with epub files.

Dependencies

  • lxml

Python version

Developed and tested against Python 2.6

Basic Examples

from libepub.book import Book

path = 'sample.epub' # or any valid path to an .epub file
book = Book(path)

# Info about author, title, language, publisher, etc.
print "Metadata: ", book.metadata

# Chapters of the book
print "Chapters: ", book.chapters

# Content of chapter 1
first_chapter = book.chapters[1]
print first_chapter.content

About

A Python Library to work with epub format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages