unpack unencrypted mobi files
Project description
mobi - library for unpacking unencrypted mobi files
A fork of KindleUnpack which removes the GUI part and makes it available as a python library via PyPi for easy unpacking of mobi files.
Usage
As library
import mobi
tempdir, epub_filepath = mobi.extract("mybook.mobi")
| NOTE: You are responsible to delete the generated tempdir! |
|---|
From the command line
The installer also creates a console script entrypoint that wraps the original KindleUnpack
$ mobiunpack
KindleUnpack v0.82
Based on initial mobipocket version Copyright © 2009 Charles M. Hannum <root@ihack.net>
Extensive Extensions and Improvements Copyright © 2009-2014
by: P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding, tkeo.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
Description:
Unpacks an unencrypted Kindle/MobiPocket ebook to html and images
or an unencrypted Kindle/Print Replica ebook to PDF and images
into the specified output folder.
Usage:
mobiunpack -r -s -p apnxfile -d -h --epub_version= infile [outdir]
Options:
-h print this help message
-i use HD Images, if present, to overwrite reduced resolution images
-s split combination mobis into mobi7 and mobi8 ebooks
-p APNXFILE path to an .apnx file associated with the azw3 input (optional)
--epub_version= specify epub version to unpack to: 2, 3, A (for automatic) or
F (force to fit to epub2 definitions), default is 2
-d dump headers and other info to output and extra files
-r write raw data to the output folder
[0.2.0] - 2020-03-02
- Minimal working 'extract' function and 'mobiunpack' console wrapper
- Replace most print calls with logging
[0.1.0] - 2020-03-02
- Empty package registered on pypi
License
GPL-3.0-only
All credits for the hard work go to https://github.com/kevinhendricks/KindleUnpack
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mobi-0.2.0.tar.gz.
File metadata
- Download URL: mobi-0.2.0.tar.gz
- Upload date:
- Size: 91.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f50773a5abab388b9e7f65dade85bbf87ce42f930a31503867777c3e79a42e3
|
|
| MD5 |
a5529b804741d58748c74b229c4fe356
|
|
| BLAKE2b-256 |
a1573ef0d5e26ecc5e8ea1cbb3569e97a086cdab5aa301918f1e042a025a37ef
|
File details
Details for the file mobi-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mobi-0.2.0-py3-none-any.whl
- Upload date:
- Size: 101.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ae7a4254e3a89a49aee6a9471b1a9edf29291e60cccec78b787c80c1344b8d5
|
|
| MD5 |
95c08ce9dfb768d1b0b8b25f9b6da674
|
|
| BLAKE2b-256 |
b25a9c1d5aa659d7ab6403b27b397f579414593e941d0aeea071d7b6a51743d9
|