Skip to main content

Utilities and command line for working with EBooks. Basic support for talking to Apple Books, Calibre, Kindle, Mobi.

Latest release 20221228:

  • CalibreCommand.popbooks: do not require argv to be empty at the end.
  • KindleBook: new amazon_url property returning an Amazon web page URL based on the ASIN.
  • New default_kindle_library() function consulting the envvar and app defaults; adjust KindleTree to use this.
  • New kindle_content_path_default() and kindle_content_path() functions; use these in default_kindle_library().
  • KindleCommand: new "app-path" subcommand to report or set the Kindle application content path.
  • CalibreCommand.cmd_ls: new -r (reverse) and -t (timestamp) sorting options.
  • Assorted minor updates.

These form the basis of my personal Kindle and Calibre workflow.

Release Log

Release 20221228:

  • CalibreCommand.popbooks: do not require argv to be empty at the end.
  • KindleBook: new amazon_url property returning an Amazon web page URL based on the ASIN.
  • New default_kindle_library() function consulting the envvar and app defaults; adjust KindleTree to use this.
  • New kindle_content_path_default() and kindle_content_path() functions; use these in default_kindle_library().
  • KindleCommand: new "app-path" subcommand to report or set the Kindle application content path.
  • CalibreCommand.cmd_ls: new -r (reverse) and -t (timestamp) sorting options.
  • Assorted minor updates.

Release 20220805:

  • CalibreCommand.books_from_spec: UPPERCASE matches a format.
  • CalibreCommand: new cmd_linkto to link book files into an external directory with nice names.
  • CalibreTree: fix .fspath and the associated .pathto and format paths.

Release 20220626:

  • CalibreBook: new setter mode for .tags, CalibreCommand: new cmd_tags to update tags.
  • CalibreBook.pull_format: AZW formats: also check for AZW4.
  • CalibreCommand.books_from_spec: /regexp: search the tags as well.
  • CalibreBook: subclass FormatableMixin; CalibreCommand.cmd_ls: new "-o ls_format" option for the top line format.

Release 20220606: Initial PyPI release.

Release files for cs.ebooks 20221228

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs.ebooks 20221228
File Size Uploaded
cs.ebooks-20221228.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cs.ebooks 20221228
File Interpreter ABI Platform
cs.ebooks-20221228-py3-none-any.whl Python 3 none any Details

Total release size: 57.0 kB

Release files / cs.ebooks-20221228.tar.gz

Download URL cs.ebooks-20221228.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a5305054f1e8318bdecf0469ab12a24f11ad0a3bc1d4115d49c71c8b1fa27b9d
BLAKE2b-256 checksum
How to use checksums
d84e250894c7ef374e5278223d1f1d06462e74bbcddec1410741c7d10f07c67b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / cs.ebooks-20221228-py3-none-any.whl

Download URL cs.ebooks-20221228-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
787aff4ef9a0d89ece27e0b8dfa1c2f6fd99331695602d2a0482db44bc021e2a
BLAKE2b-256 checksum
How to use checksums
727342e050622653647dee23d22b57111c732309b1369ce71ebc59fadba84596
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page