Skip to main content

Library prototyping based on Calibre.

Project description

Repository license PyPI package Travis CI result Documentation status Support badge

Library prototyping based on Calibre

Calibrestekje is a Python library which provides a way to work with the Calibre database outside the context of the Calibre desktop and web interfaces.

Generated SQLAlchemy database bindings (see sqlacodegen for more) are provided which allow for read/write access to an existing Calibre database. These bindings are more fine grained than Calibres database interface and provide direct access to the Database table layer.

A flask extension is also provided for getting started with web prototyping. Please see flask-calibrestekje and the flask usage documentation for more.

Quick Example

from calibrestekje import Book, Publisher, init_session

session = init_session("sqlite:///mymetadata.db")

publisher = (session.query(Publisher)
                    .filter(Publisher.name == "MIT Press").one())

books = (session.query(Book)
                .filter(Book.publishers.contains(publisher)))

print(f"Books published by MIT Press: {books.count()}")

Documentation

Mirroring

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

calibrestekje-0.0.3.tar.gz (25.2 kB view details)

Uploaded Source

File details

Details for the file calibrestekje-0.0.3.tar.gz.

File metadata

  • Download URL: calibrestekje-0.0.3.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for calibrestekje-0.0.3.tar.gz
Algorithm Hash digest
SHA256 142b169a7eb52d1500a8e536f9579a0aa25d0e1ae2ed134404bb54eb0da23eaa
MD5 5c0f3f02bd5d43c29d1a9fc4105e2cff
BLAKE2b-256 80062f09614042a5a7ced795f0598f89001fd257e63e3cbfb15a7f4cf5960f2d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page