Skip to content

a tool to make mobi-format file wich could be load into Kindle

Notifications You must be signed in to change notification settings

panhaoyu/kindle_maker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kindle ebook making

travis codecov

kindle_maker is a Python tool which, given a set of html files and a plain text file with toc message, creates a MOBI file that you can directly use on you Amazon Kindle (or any other device that supports MOBI documents).

Want to see what it looks like? Take a look at `examples/!

Requirements

  • A working Python 3 environment (tested on OS X + Python 3.5 + Virtualenv).
  • Amazon's KindleGen binary.

Installation

  1. (optional) Source your virtualenv.
  2. pip install git+https://github.com/jachinlin/kindle_maker.git

Usage

  1. prepare html files and a toc.md file in a source dir.
  2. write a script
from kindle_maker import make_mobi

source_dir = 'put the source dir here'
output_dir = 'where you want to put the output mobi file'
make_mobi(source_dir, output_dir)

  1. or call in a command-line tool
make_mobi <source_dir> <output_dir>

This will create a <title>.mobi in <output dir>. You can now transfer this file to your device.

Example

see examples at examples!

License

Have fun.

About

a tool to make mobi-format file wich could be load into Kindle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 92.6%
  • HTML 7.4%