Quote:
Originally Posted by KissMeKiwi
What I am curious, is there an API or module to interact with calibre through python? Really I would need to look for a book, grab an epub (convert if it doesn't exist), and send it via an email. I saw some other links but it seemed like that was creating an entire environments for it and it got me confused.
|
API documentation for the database interface:
https://manual.calibre-ebook.com/en/db_api.html
API documentation for the e-book editing tools:
https://manual.calibre-ebook.com/en/polish.html
You can use the API in your python scripts. To execute the script, you use this command:
calibre-debug /path/to/your/python/script.py
Quote:
Originally Posted by KissMeKiwi
Okay so in theory, I can just run shell commands on the same machine which really should be doable in python.
|
Command Line Interface:
https://manual.calibre-ebook.com/en/...cli-index.html
Yes, using the Command Line Interface.