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
Release files for calibrestekje 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| calibrestekje-0.0.3.tar.gz | 25.2 kB | Details |
Release files / calibrestekje-0.0.3.tar.gz
| Download URL | calibrestekje-0.0.3.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
142b169a7eb52d1500a8e536f9579a0aa25d0e1ae2ed134404bb54eb0da23eaa
|
|
BLAKE2b-256 checksum How to use checksums |
80062f09614042a5a7ced795f0598f89001fd257e63e3cbfb15a7f4cf5960f2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|