Library prototyping based on Calibre.
Project description
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. A set of generated SQLAlchemy bindings (see sqlacodegen for more) are provided which allow for the read/write access to an existing Calibre metadata database (a file typically called metadata.db). These bindings are more fine grained than Calibres database interface and provide direct access to the Database table layer.
Quick Example
See documentation linked below for more.
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
Release history Release notifications | RSS feed
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.1.tar.gz
(24.5 kB
view details)
File details
Details for the file calibrestekje-0.0.1.tar.gz
.
File metadata
- Download URL: calibrestekje-0.0.1.tar.gz
- Upload date:
- Size: 24.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 885d693bb5045ea2938c9c962d72f408cca07464ca96f56bfbc9fa3e782e4fc1 |
|
MD5 | 964b9490612e412426abbea646050c29 |
|
BLAKE2b-256 | 29b8ec85d006aaaf68adfa214f08eb40e55a29cff46b95c5280797619ddff9ac |