“ibooks” is a small python module that can be used to extract cover images and basic metadata from iBooks Author files.
Author: Titusz <tp at py7 de>
Source Code: http://github.com/titusz/ibooks
License: BSD
Installation
Use easy_install or pip:
pip install ibooks
Commandline Usage
With the commandline script you can print metadata to the console and extract the cover from .ibooks files:
ibooks my-ibooks-author-file.ibooks
Library Usage
Here is how you can use ‘ibooks’ as a lib in your code:
>>>from ibooks import iBooks
>>>ibook = iBooks('my-ibooks-author.ibooks')
# Get some metadata
>>> ibook.title
"Title of iBooks file"
>>>ibook.author
"Authors Name"
# Extract cover
>>>ibook.cover
/temp-path-to/OPS/assets/images/cover-image.jpg
# Be sure to process the image file before the "ibook" object is released
0.3
Release date: 2013-07-29
added wheel package and other packaging fixes
fix error when calling as script without argument
0.2
Release date: 2013-07-26
custom exceptions
added .is_preview()
0.1
Release date: 2013-06-19
Initial release
Release files for ibooks 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ibooks-0.3.zip | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ibooks-0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 49.9 kB
Release files / ibooks-0.3.zip
| Download URL | ibooks-0.3.zip |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5ba73b03d6c9c3e04823fbe2b0de62cf2fa11145f1a8aa9311117978346f48f
|
|
BLAKE2b-256 checksum How to use checksums |
ede3c8a74a7345d41661ebdb1d81a256ae33311c54cd031aaff5a0115ebf070c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ibooks-0.3-py2.py3-none-any.whl
| Download URL | ibooks-0.3-py2.py3-none-any.whl |
|---|---|
| Size | 42.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9d2df5dc26ecff3d7b9f454e3f0e4cf959b4d2f509d25a9966c074af990a4699
|
|
BLAKE2b-256 checksum How to use checksums |
9f2cb9027dfd798805a66b9baba727fcbfd0d1c44607647fb107a4d64bed60ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |