![]() |
#1 |
Nerd
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
|
Writing a Kindlet app
I’m thinking of writing an app that allows getting books from OPBS libraries, and eventually proprietary libraries. As it will need to convert books, it would be great if it could support python so it could use the Calibre converter.
Is this possible? I want it to support at least the KT4 and K3G. |
![]() |
![]() |
![]() |
#2 |
Nerd
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
|
Writing a Kindlet app
Note that this is for my grandmother, which is why it needs to be a Kindlet, she deemed KOReader “too complicated”.
I was hoping to have it be able to download, de-drm, convert, and add it to the Kindle’s library completely transparently, with books from Libby. If it could execute python, I could take advantage of the existing Calibre stuff, and just deal with UI and getting the book via Libby’s api (which I previously reverse engineered) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
python is the easy part. I think it comes with the screensaver package.
You can't use calibre's converter without installing calibre itself. It is unlikely you would be able to install all of calibre's dependencies. |
![]() |
![]() |
![]() |
#4 |
Nerd
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
|
Isn’t the converter pure python? So couldn’t you just import just the conversion code directly?
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,115
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
Before trying all that maybe you could fist test what your grandmother thinks of using a "magic catalog" workflow: a poor man's alternative to real OPDS catalog where you create a "catalog" book that contains list of direct link URLs for downloading mobi files (has to be mobi since that extension is whitelisted in Kindle's browser, and click on link inside catalog book just opens the browser IIRC).
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Quote:
Code:
which ebook-convert /usr/bin/ebook-convert file /usr/bin/ebook-convert /usr/bin/ebook-convert: symbolic link to /opt/calibre/ebook-convert file /opt/calibre/ebook-convert /opt/calibre/ebook-convert: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=81105c7c15aff43e782096d4e1e0d9c9176c0933, stripped |
|
![]() |
![]() |
![]() |
#7 | |
Nerd
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
|
Writing a Kindlet app
Quote:
Yes, ~~the command line tool is in C++~~, but I think that calls the python code to do the actual work. See https://github.com/kovidgoyal/calibr...oks/conversion Edit: actually, the tool seems to be in python too (see cli.py above), ig the executable is some kind of wrapper. Last edited by JJTech; 07-30-2022 at 02:31 PM. |
|
![]() |
![]() |
![]() |
#8 | |
Nerd
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
|
Quote:
Well, that might work, if I setup everything server-side. The problem is that it wouldn’t be able to pick up on new additions, and wouldn’t be very searchable. Also, would be hard to do things like checking out and retuning books. |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,115
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
Like I said, that is a poor man's alternative / better than nothing option that Kindle bunch of users used years ago, back when I had Kindle 3. Just to have something while you work on kindlet solution, if that "framework" even can access all the stuff needed to do that workload?
Maybe kindlet or a booklet app/ "book enty" that just displays /inlines a web site, "calibre-web" or calibre's own web catalog thing? To be somewhat more convenient for you grandmother to use then her manually opening Kindle's browser and opening a bookmark that leads to the same web page? Last edited by shamanNS; 07-30-2022 at 03:02 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
good writing app for the Max Carta? | Nate the great | Onyx Boox | 27 | 10-21-2017 06:27 PM |
Kindlet writing guide for the absolute beginner [PW] | Hotrootsoup | Kindle Developer's Corner | 5 | 08-08-2013 07:37 PM |
302 Writing app for PB302 | adbosch | PocketBook | 67 | 05-22-2011 09:40 AM |
Android App that translates freehand writing to text? | silkmandarin | enTourage Archive | 4 | 05-12-2011 09:52 AM |
Book writing app for iPad? | David Munch | Apple Devices | 3 | 09-23-2010 04:13 PM |