A summary of the lines-of-code count for Calibre showing about 362 thousand lines of Python, 76 thousand of C/C++, 28 thousand of RapydScript, and several others.
https://stockroom.wandering.shop/media_attachments/files/115/678/037/385/305/491/original/72c5232f720aacdf.png