Metadata-Version: 1.1
Name: mkepub
Version: 1.0
Summary: Simple minimalistic library for creating EPUB3 files
Home-page: https://github.com/anqxyr/mkepub/
Author: anqxyr
Author-email: anqxyr@gmail.com
License: MIT
Description: mkepub
        ======
        
        Ever wanted to turn some text into a EPUB, but it seemed like too much
        of a hassle? This is the library for you.
        
        Basic Usage
        ~~~~~~~~~~~
        
        .. ``python``
        
            import mkepub
        
            book = mkepub.Book(title='An Example')
            book.add_page(title='First Page', content='Lorem Ipsum etcetera.')
            book.save('example.epub')
        
        Advanced Usage
        ~~~~~~~~~~~~~~
        
        .. ``python``
        
            import mkepub
        
            book = mkepub.Book(title='Advanced Example', author='The Author')
            # multiple authors can be specified as a list:
            # mkepub.Book(title='Advanced Example', authors=['The First Author', 'The Second Author'])
            with open('cover.jpg', 'rb') as file:
                book.set_cover(file.read())
            with open('style.css') as file:
                book.set_stylesheet(file.read())
        
            first = book.add_page('Chapter 1', 'And so the book begins.')
        
            child = book.add_page('Chapter 1.1', 'Nested TOC is supported.', parent=first)
            book.add_page('Chapter 1.1.1', 'Infinite nesting levels', parent=child)
            book.add_page('Chapter 1.2', 'In any order you wish.', parent=first)
        
            book.add_page('Chapter 2', 'Use <b>html</b> to make your text <span class="pink">prettier</span>')
        
            book.add_page('Chapter 3: Images', '<img src="images/chapter3.png" alt="You can use images as well">')
            # as long as you add them to the book:
            with open('chapter3.png', 'rb') as file:
                book.add_image('chapter3.png', file.read())
        
            book.save('advanced.epub')
        
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
