{ "info": { "author": "Aleksandar Erkalovic", "author_email": "aerkalov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "About EbookLib\n==============\n\nEbookLib is a Python library for managing EPUB2/EPUB3 and Kindle files. It's capable of reading and writing EPUB files programmatically (Kindle support is under development).\n\nThe API is designed to be as simple as possible, while at the same time making complex things possible too. It has support for covers, table of contents, spine, guide, metadata and etc.\n\nEbookLib is used in `Booktype `_ from Sourcefabric, as well as `sprits-it! `_, `fanfiction2ebook `_, `viserlalune `_ and `Telemeta `_.\n\nPackages of EbookLib for GNU/Linux are available in `Debian `_ and `Ubuntu `_. \n\nSphinx documentation is generated from the templates in the docs/ directory and made available at http://ebooklib.readthedocs.io\n\nUsage\n=====\n\nReading\n-------\n\n::\n\n import ebooklib\n from ebooklib import epub\n\n book = epub.read_epub('test.epub')\n\n for image in book.get_items_of_type(ebooklib.ITEM_IMAGE):\n print image\n\nWriting\n-------\n\n::\n\n from ebooklib import epub\n\n book = epub.EpubBook()\n\n # set metadata\n book.set_identifier('id123456')\n book.set_title('Sample book')\n book.set_language('en')\n\n book.add_author('Author Authorowski')\n book.add_author('Danko Bananko', file_as='Gospodin Danko Bananko', role='ill', uid='coauthor')\n\n # create chapter\n c1 = epub.EpubHtml(title='Intro', file_name='chap_01.xhtml', lang='hr')\n c1.content=u'

Intro heading

Zaba je skocila u baru.

'\n\n # add chapter\n book.add_item(c1)\n\n # define Table Of Contents\n book.toc = (epub.Link('chap_01.xhtml', 'Introduction', 'intro'),\n (epub.Section('Simple book'),\n (c1, ))\n )\n\n # add default NCX and Nav file\n book.add_item(epub.EpubNcx())\n book.add_item(epub.EpubNav())\n\n # define CSS style\n style = 'BODY {color: white;}'\n nav_css = epub.EpubItem(uid=\"style_nav\", file_name=\"style/nav.css\", media_type=\"text/css\", content=style)\n\n # add CSS file\n book.add_item(nav_css)\n\n # basic spine\n book.spine = ['nav', c1]\n\n # write to the file\n epub.write_epub('test.epub', book, {})\n\n\n\nLicense\n=======\n\nEbookLib is licensed under the AGPL license.\n\n\nAuthors\n=======\n\nFull list of authors is in AUTHORS.txt file.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aerkalov/ebooklib", "keywords": "ebook,epub,kindle", "license": "GNU Affero General Public License", "maintainer": "", "maintainer_email": "", "name": "EbookLib", "package_url": "https://pypi.org/project/EbookLib/", "platform": "", "project_url": "https://pypi.org/project/EbookLib/", "project_urls": { "Homepage": "https://github.com/aerkalov/ebooklib" }, "release_url": "https://pypi.org/project/EbookLib/0.17.1/", "requires_dist": null, "requires_python": "", "summary": "Ebook library which can handle EPUB2/EPUB3 and Kindle format", "version": "0.17.1" }, "last_serial": 4657983, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "cfa69e502e06d098b25285eaf2933eaa", "sha256": "d7f66d5fc2cc4197643dbd78d19503931ce0eae1cd405acb584d8ed1a76dd951" }, "downloads": -1, "filename": "EbookLib-0.1.tar.gz", "has_sig": false, "md5_digest": "cfa69e502e06d098b25285eaf2933eaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22944, "upload_time": "2013-05-07T16:24:37", "url": "https://files.pythonhosted.org/packages/50/61/71082ffeeecdbdf7ded217b7bc439afa67563d8823f7bc5d4914232eb3f0/EbookLib-0.1.tar.gz" } ], "0.15": [ { "comment_text": "", "digests": { "md5": "d29882a04477c3854b1af9f6a84dc160", "sha256": "cba18893047b27cdc516ba61e05b76da5f087a3c3dd69c3121dda415fd3e9be1" }, "downloads": -1, "filename": "EbookLib-0.15.tar.gz", "has_sig": false, "md5_digest": "d29882a04477c3854b1af9f6a84dc160", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29556, "upload_time": "2014-05-15T22:35:32", "url": "https://files.pythonhosted.org/packages/04/30/2cbf65fa9587a1ecc66a78eea91f9189ead8fdadd5e009115bce34529aa6/EbookLib-0.15.tar.gz" } ], "0.16": [ { "comment_text": "", "digests": { "md5": "ec0f12d312d5b055796a93085d483486", "sha256": "c6b565009f450b9c610cf009b59d85d43e6c2d6fdf7d0d1c578e03ee37c32f1a" }, "downloads": -1, "filename": "EbookLib-0.16.tar.gz", "has_sig": false, "md5_digest": "ec0f12d312d5b055796a93085d483486", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32573, "upload_time": "2017-04-03T18:49:19", "url": "https://files.pythonhosted.org/packages/6d/4b/d432e26fd14cc8ad1bf86453261115127931312c7fda3eb0911efe67bed4/EbookLib-0.16.tar.gz" } ], "0.17": [ { "comment_text": "", "digests": { "md5": "e4a30b5c8e0927c7347bbe547272d788", "sha256": "c4fd1af2fb15f2b82b3d8cc70b33a6735a16c77bbea8d92eba2b22448ced604e" }, "downloads": -1, "filename": "EbookLib-0.17.tar.gz", "has_sig": false, "md5_digest": "e4a30b5c8e0927c7347bbe547272d788", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107654, "upload_time": "2018-07-03T19:07:31", "url": "https://files.pythonhosted.org/packages/de/dc/4e0f2b61529bca973b492396a70d93b9fe405e49353e9b704309bb551c9d/EbookLib-0.17.tar.gz" } ], "0.17.1": [ { "comment_text": "", "digests": { "md5": "9b640a0673d97ac57795819844d33828", "sha256": "fe23e22c28050196c68db3e7b13b257bf39426d927cb395c6f2cc13ac11327f1" }, "downloads": -1, "filename": "EbookLib-0.17.1.tar.gz", "has_sig": false, "md5_digest": "9b640a0673d97ac57795819844d33828", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 111567, "upload_time": "2019-01-03T22:20:47", "url": "https://files.pythonhosted.org/packages/00/38/7d6ab2e569a9165249619d73b7bc6be0e713a899a3bc2513814b6598a84c/EbookLib-0.17.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9b640a0673d97ac57795819844d33828", "sha256": "fe23e22c28050196c68db3e7b13b257bf39426d927cb395c6f2cc13ac11327f1" }, "downloads": -1, "filename": "EbookLib-0.17.1.tar.gz", "has_sig": false, "md5_digest": "9b640a0673d97ac57795819844d33828", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 111567, "upload_time": "2019-01-03T22:20:47", "url": "https://files.pythonhosted.org/packages/00/38/7d6ab2e569a9165249619d73b7bc6be0e713a899a3bc2513814b6598a84c/EbookLib-0.17.1.tar.gz" } ] }