id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
27,700
caches.py
kovidgoyal_calibre/src/calibre/library/caches.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import locale import time import traceback from contextlib import suppress from datetime import timedelta from itertools import repeat from threading import Thread from cal...
48,647
Python
.py
1,097
29.919781
122
0.507302
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,701
prefs.py
kovidgoyal_calibre/src/calibre/library/prefs.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import json import os from calibre import prints from calibre.constants import preferred_encoding from calibre.utils.config import from_json, to_json from polyglot.builtins...
3,740
Python
.py
99
27.222222
95
0.556445
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,702
comments.py
kovidgoyal_calibre/src/calibre/library/comments.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net> import re from calibre import prepare_string_for_xml from calibre.constants import preferred_encoding from calibre.ebooks.BeautifulSoup import BeautifulSoup, CData, Comment, Declaration, NavigableString, ProcessingInstructi...
5,878
Python
.py
139
32.71223
123
0.576363
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,703
__init__.py
kovidgoyal_calibre/src/calibre/library/__init__.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' ''' Code to manage ebook library''' import os def db(path=None, read_only=False): from calibre.db.legacy import LibraryDatabase from calibre.utils.config import prefs return LibraryDatabase(os.path.expanduser(path) i...
2,504
Python
.py
68
30.161765
87
0.64265
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,704
database2.py
kovidgoyal_calibre/src/calibre/library/database2.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' ''' The database used to store ebook metadata ''' import copy import functools import glob import hashlib import json import numbers import os import random import re import shutil import sys import...
161,299
Python
.py
3,440
33.390698
136
0.539522
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,705
field_metadata.py
kovidgoyal_calibre/src/calibre/library/field_metadata.py
''' Created on 25 May 2010 @author: charles ''' import traceback from collections import OrderedDict from calibre.utils.config_base import tweaks from calibre.utils.icu import lower as icu_lower from calibre.utils.localization import _, ngettext from polyglot.builtins import iteritems, itervalues category_icon_map ...
30,706
Python
.py
640
29.165625
112
0.428643
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,706
database.py
kovidgoyal_calibre/src/calibre/library/database.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' ''' Backend that implements storage of ebooks in an sqlite database. ''' import datetime import re import sqlite3 as sqlite from zlib import compress, decompress from calibre import isbytestring from calibre.ebooks.metadata import...
62,391
Python
.py
1,378
33.090711
148
0.565134
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,707
csv_xml.py
kovidgoyal_calibre/src/calibre/library/catalogs/csv_xml.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import codecs import os import re from collections import namedtuple from calibre.customize import CatalogPlugin from calibre.customize.conversion import DummyReporter from c...
10,513
Python
.py
206
32.490291
110
0.463015
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,708
epub_mobi_builder.py
kovidgoyal_calibre/src/calibre/library/catalogs/epub_mobi_builder.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2010, Greg Riker import datetime import os import platform import re import shutil import time import unicodedata import zlib from copy import deepcopy from xml.sax.saxutils import escape from lxml import etree from calibre import as_unicode, force_unicode, isbytestr...
179,329
Python
.py
3,638
34.822705
174
0.539662
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,709
epub_mobi.py
kovidgoyal_calibre/src/calibre/library/catalogs/epub_mobi.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import datetime import os import time from collections import namedtuple from calibre import strftime from calibre.customize import CatalogPlugin from calibre.customize.conve...
25,222
Python
.py
454
37.563877
154
0.516184
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,710
utils.py
kovidgoyal_calibre/src/calibre/library/catalogs/utils.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Greg Riker' __docformat__ = 'restructuredtext en' import re from calibre import prints from calibre.utils.logging import default_log as log class NumberToText: # {{{ ''' Converts numbers to text 4.56 => four point fifty-six ...
8,839
Python
.py
192
32.921875
102
0.545919
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,711
__init__.py
kovidgoyal_calibre/src/calibre/library/catalogs/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' FIELDS = ['all', 'title', 'title_sort', 'author_sort', 'authors', 'comments', 'cover', 'formats','id', 'isbn', 'library_name','ondevice', 'pubdate', 'publisher', ...
817
Python
.py
17
43.647059
93
0.668782
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,712
bibtex.py
kovidgoyal_calibre/src/calibre/library/catalogs/bibtex.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import codecs import numbers import os import re from collections import namedtuple from calibre import strftime from calibre.customize import CatalogPlugin from calibre.cu...
16,947
Python
.py
336
34.997024
114
0.522402
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,713
qt_backend.py
kovidgoyal_calibre/src/calibre/scraper/qt_backend.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2024, Kovid Goyal <kovid at kovidgoyal.net> import json import os import sys from contextlib import suppress from threading import Thread from time import monotonic from typing import Any, TypedDict from qt.core import ( QApplication, QNetworkAccessManager, ...
12,798
Python
.py
297
34.579125
159
0.627471
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,714
qt.py
kovidgoyal_calibre/src/calibre/scraper/qt.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2024, Kovid Goyal <kovid at kovidgoyal.net> import atexit import json import os import shutil import subprocess import time import weakref from contextlib import suppress from io import BytesIO from queue import Queue from threading import RLock, Thread from urllib.err...
9,640
Python
.py
254
28.251969
154
0.573082
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,715
simple.py
kovidgoyal_calibre/src/calibre/scraper/simple.py
#!/usr/bin/env python # License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net> import sys import weakref from threading import Lock overseers = [] def cleanup_overseers(): browsers = tuple(filter(None, (x() for x in overseers))) del overseers[:] def join_all(): for br in browser...
1,039
Python
.py
31
27.774194
72
0.661986
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,716
webengine_backend.py
kovidgoyal_calibre/src/calibre/scraper/webengine_backend.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2024, Kovid Goyal <kovid at kovidgoyal.net> import base64 import html import json import os import secrets import sys from collections import deque from contextlib import suppress from http import HTTPStatus from time import monotonic from qt.core import QApplication,...
12,936
Python
.py
269
39
159
0.641255
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,717
test_fetch_backend.py
kovidgoyal_calibre/src/calibre/scraper/test_fetch_backend.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2024, Kovid Goyal <kovid at kovidgoyal.net> import http.server import json import os import unittest from threading import Event, Thread from calibre.constants import iswindows from .qt import Browser, WebEngineBrowser is_ci = os.environ.get('CI', '').lower() == 'tr...
6,324
Python
.py
162
28.808642
91
0.568097
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,718
msgfmt.py
kovidgoyal_calibre/src/calibre/translations/msgfmt.py
#! /usr/bin/env python # Written by Martin v. Löwis <loewis@informatik.hu-berlin.de> """Generate binary message catalog from textual translation description. This program converts a textual Uniforum-style message catalog (.po file) into a binary GNU catalog (.mo file). This is essentially the same function as the ...
9,298
Python
.py
264
26.068182
111
0.552839
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,719
dynamic.py
kovidgoyal_calibre/src/calibre/translations/dynamic.py
''' Dynamic language lookup of translations for user-visible strings. ''' __license__ = 'GPL v3' __copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>' import io from gettext import GNUTranslations from zipfile import ZipFile from calibre.utils.localization import get_lc_messages_path from calibre.util...
1,061
Python
.py
31
26.290323
69
0.604106
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,720
mime.py
kovidgoyal_calibre/src/calibre/devices/mime.py
__license__ = 'GPL 3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from calibre import guess_type def _mt(path): mt = guess_type(path)[0] if not mt: mt = 'application/octet-stream' return mt def mime_type_ext(ext): if not ext.startswith('....
419
Python
.py
15
23.8
58
0.63728
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,721
errors.py
kovidgoyal_calibre/src/calibre/devices/errors.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' """ Defines the errors that the device drivers generate. G{classtree ProtocolError} """ class ProtocolError(Exception): """ The base class for all exceptions in this package """ def __init__(self, msg): Exception.__...
4,386
Python
.py
106
34.660377
95
0.657764
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,722
interface.py
kovidgoyal_calibre/src/calibre/devices/interface.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' import os from collections import namedtuple from calibre import prints from calibre.constants import iswindows from calibre.customize import Plugin class OpenPopupMessage: def __init__(self, title='', message='', level='info...
31,230
Python
.py
648
38.635802
116
0.643259
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,723
cli.py
kovidgoyal_calibre/src/calibre/devices/cli.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' """ Provides a command-line interface to ebook devices. For usage information run the script. """ import os import sys import time from optparse import OptionParser from calibre import __appname__, __versio...
15,091
Python
.py
352
30.943182
192
0.540533
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,724
utils.py
kovidgoyal_calibre/src/calibre/devices/utils.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os import re import time from functools import partial from calibre.devices.errors import DeviceError, FreeSpaceError, WrongDestinationError def sanity_check(on...
5,275
Python
.py
126
33.34127
91
0.59922
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,725
__init__.py
kovidgoyal_calibre/src/calibre/devices/__init__.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' ''' Device drivers. ''' import pprint import sys import time from functools import partial DAY_MAP = dict(Sun=0, Mon=1, Tue=2, Wed=3, Thu=4, Fri=5, Sat=6) MONTH_MAP = dict(Jan=1, Feb=2, Mar=3, Apr=4, May=5, Jun=6, Jul=7, Aug=8, ...
7,460
Python
.py
197
27.208122
103
0.54754
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,726
udisks.py
kovidgoyal_calibre/src/calibre/devices/udisks.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os import re from contextlib import suppress def node_mountpoint(node): if isinstance(node, str): node = node.encode('utf-8') def de_mangle(raw): ...
5,402
Python
.py
134
32.298507
122
0.612471
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,727
winusb.py
kovidgoyal_calibre/src/calibre/devices/winusb.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> import errno import os import re import string from collections import defaultdict, namedtuple from ctypes import ( POINTER, WINFUNCTYPE, Structure, WinError, addressof, byref, c_ubyte, c_uint...
39,902
Python
.py
895
37.335196
160
0.644848
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,728
scanner.py
kovidgoyal_calibre/src/calibre/devices/scanner.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' ''' Device scanner that fetches list of devices on system ina platform dependent manner. ''' import os import sys import time from collections import namedtuple from threading import Lock from calibre import as_unicode, prints fro...
7,246
Python
.py
194
26.994845
85
0.557712
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,729
misc.py
kovidgoyal_calibre/src/calibre/devices/misc.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os from calibre import fsync from calibre.devices.usbms.driver import USBMS class PALMPRE(USBMS): name = 'Palm Pre Device Interface' gui_name ...
17,559
Python
.py
429
34.048951
129
0.591436
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,730
__init__.py
kovidgoyal_calibre/src/calibre/devices/smart_device_app/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,731
driver.py
kovidgoyal_calibre/src/calibre/devices/smart_device_app/driver.py
#!/usr/bin/env python ''' Created on 29 Jun 2012 @author: charles ''' import hashlib import json import os import posixpath import random import select import socket import sys import threading import time import traceback from collections import defaultdict from errno import EAGAIN, EINTR from functools import wraps...
92,144
Python
.py
1,835
35.249591
138
0.538753
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,732
kobotouch_config.py
kovidgoyal_calibre/src/calibre/devices/kobo/kobotouch_config.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2015-2019, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import textwrap from qt.core import QCheckBox, QDialog, QDialogButtonBox, QGridLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton, QVBoxLayout, QWidget from calibr...
40,655
Python
.py
701
44.455064
155
0.618762
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,733
books.py
kovidgoyal_calibre/src/calibre/devices/kobo/books.py
__license__ = 'GPL v3' __copyright__ = '2010-2012, , Timothy Legge <timlegge at gmail.com> and David Forrester <davidfor@internode.on.net>' __docformat__ = 'restructuredtext en' import os import time from calibre import isbytestring from calibre.constants import DEBUG, preferred_encoding from calibre.devices.usbms....
14,656
Python
.py
268
39.126866
148
0.550418
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,734
__init__.py
kovidgoyal_calibre/src/calibre/devices/kobo/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,735
bookmark.py
kovidgoyal_calibre/src/calibre/devices/kobo/bookmark.py
__license__ = 'GPL v3' __copyright__ = '2011, Timothy Legge <timlegge@gmail.com> and Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os from calibre.prints import debug_print class Bookmark(): # {{{ ''' A simple class fetching bookmark data kobo-specific ''' ...
8,345
Python
.py
163
37.165644
134
0.550638
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,736
driver.py
kovidgoyal_calibre/src/calibre/devices/kobo/driver.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010-2019, Timothy Legge <timlegge@gmail.com>, Kovid Goyal <kovid@kovidgoyal.net> and David Forrester <davidfor@internode.on.net>' __docformat__ = 'restructuredtext en' ''' Driver for Kobo eReaders. Supports all e-ink devices. Originally developed by T...
211,055
Python
.py
3,647
43.275569
160
0.577482
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,737
driver.py
kovidgoyal_calibre/src/calibre/devices/binatone/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Bookeen's Cybook Gen 3 ''' from calibre.devices.usbms.driver import USBMS class README(USBMS): name = 'Binatone Readme Device Interface' gui_name ...
1,486
Python
.py
42
29.047619
77
0.611732
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,738
driver.py
kovidgoyal_calibre/src/calibre/devices/nook/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Barns and Nobel's Nook ''' import io import os from calibre import fsync, prints from calibre.constants import DEBUG from calibre.devices.usbms.driver import USBMS from...
4,408
Python
.py
102
35.431373
108
0.604956
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,739
__init__.py
kovidgoyal_calibre/src/calibre/devices/paladin/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,740
driver.py
kovidgoyal_calibre/src/calibre/devices/paladin/driver.py
#!/usr/bin/env python # License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> ''' Device driver for the Paladin devices ''' import os import sys import time from contextlib import closing from calibre.devices.errors import DeviceError from calibre.devices.mime import mime_type_ext from calibre.devic...
22,184
Python
.py
453
34.827815
107
0.553239
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,741
__init__.py
kovidgoyal_calibre/src/calibre/devices/folder_device/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,742
driver.py
kovidgoyal_calibre/src/calibre/devices/folder_device/driver.py
''' Created on 15 May 2010 @author: charles ''' import os from calibre.devices.usbms.driver import USBMS, BookList from calibre.ebooks import BOOK_EXTENSIONS # This class is added to the standard device plugin chain, so that it can # be configured. It has invalid vendor_id etc, so it will never match a # device. The...
3,208
Python
.py
84
31.952381
73
0.645578
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,743
__init__.py
kovidgoyal_calibre/src/calibre/devices/hanlin/__init__.py
__license__ = 'GPL v3' __copyright__ = '2009, Tijmen Ruizendaal <tijmen at mybebook.com>'
92
Python
.py
2
45
66
0.666667
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,744
driver.py
kovidgoyal_calibre/src/calibre/devices/hanlin/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, Tijmen Ruizendaal <tijmen at mybebook.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Hanlin ''' import re from calibre.devices.usbms.driver import USBMS class HANLINV3(USBMS): name = 'Hanlin V3 driver' gui_name = 'Hanlin V3...
4,549
Python
.py
117
31.752137
87
0.590661
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,745
driver.py
kovidgoyal_calibre/src/calibre/devices/nuut2/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' ''' Device driver for the Nuut2 ''' from calibre.devices.usbms.driver import USBMS class NUUT2(USBMS): name = 'Nuut2 Device Interface' gui_name = 'NeoLux Nuut2' desc...
941
Python
.py
26
32
67
0.630531
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,746
t4b.py
kovidgoyal_calibre/src/calibre/devices/cybook/t4b.py
__license__ = 'GPL v3' __copyright__ = '2013, Jellby <jellby at yahoo.com>' ''' Write a t4b file to disk. ''' from io import BytesIO DEFAULT_T4B_DATA = b'\x74\x34\x62\x70\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x...
28,699
Python
.py
29
983.310345
27,694
0.745203
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,747
t2b.py
kovidgoyal_calibre/src/calibre/devices/cybook/t2b.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com>' ''' Write a t2b file to disk. ''' import io from polyglot.builtins import int_to_byte DEFAULT_T2B_DATA = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\...
13,916
Python
.py
42
324.547619
12,546
0.73368
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,748
driver.py
kovidgoyal_calibre/src/calibre/devices/cybook/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Bookeen's Cybook Gen 3 and Opus and Orizon ''' import os import re import calibre.devices.cybook.t2b as t2b import calibre.devices.cybook.t4b as t4b from calibre import...
4,984
Python
.py
120
35.05
140
0.612308
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,749
__init__.py
kovidgoyal_calibre/src/calibre/devices/blackberry/__init__.py
__license__ = 'GPL 3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
119
Python
.py
3
38.666667
58
0.681034
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,750
driver.py
kovidgoyal_calibre/src/calibre/devices/blackberry/driver.py
__license__ = 'GPL 3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from calibre.devices.usbms.driver import USBMS class BLACKBERRY(USBMS): name = 'Blackberry Device Interface' gui_name = 'Blackberry' description = _('Communicate with...
1,465
Python
.py
36
35.888889
75
0.630312
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,751
__init__.py
kovidgoyal_calibre/src/calibre/devices/eslick/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,752
driver.py
kovidgoyal_calibre/src/calibre/devices/eslick/driver.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from calibre.devices.usbms.driver import USBMS class ESLICK(USBMS): name = 'ESlick Device Interface' gui_name = 'Foxit ESlick' description ...
1,649
Python
.py
39
37.25641
70
0.631844
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,753
driver.py
kovidgoyal_calibre/src/calibre/devices/irexdr/driver.py
__license__ = 'GPL 3' __copyright__ = '2009, John Schember <john@nachtimwald.com>' __docformat__ = 'restructuredtext en' ''' Device driver for IRex Digiatal Reader ''' from calibre.devices.usbms.driver import USBMS class IREXDR1000(USBMS): name = 'IRex Digital Reader 1000 Device Interface' descri...
1,354
Python
.py
35
34.2
78
0.636015
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,754
__init__.py
kovidgoyal_calibre/src/calibre/devices/teclast/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,755
driver.py
kovidgoyal_calibre/src/calibre/devices/teclast/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from calibre.devices.usbms.driver import USBMS class TECLAST_K3(USBMS): name = 'Teclast K3/K5 Device Interface' gui_name = 'K3/K5' description = _('Communicate wit...
3,621
Python
.py
85
37.317647
102
0.606529
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,756
driver.py
kovidgoyal_calibre/src/calibre/devices/hanvon/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Hanvon devices ''' import os import re from calibre import fsync from calibre.devices.usbms.driver import USBMS def is_alex(device_info): return device_info[3] == ...
6,181
Python
.py
152
33.605263
95
0.605224
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,757
driver.py
kovidgoyal_calibre/src/calibre/devices/sne/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Bookeen's Cybook Gen 3 ''' from calibre.devices.usbms.driver import USBMS class SNE(USBMS): name = 'Samsung SNE Device Interface' gui_name = '...
1,005
Python
.py
25
36.08
73
0.645361
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,758
test.py
kovidgoyal_calibre/src/calibre/devices/mtp/test.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import gc import io import unittest from calibre.constants import islinux, iswindows from calibre.devices.mtp.driver import MTP_DEVICE from calibre.devices.scanner impor...
9,228
Python
.py
219
32.182648
94
0.609865
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,759
filesystem_cache.py
kovidgoyal_calibre/src/calibre/devices/mtp/filesystem_cache.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import json import sys import time import weakref from collections import defaultdict, deque from datetime import datetime from itertools import chain from operator impor...
10,511
Python
.py
261
30.249042
114
0.573851
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,760
books.py
kovidgoyal_calibre/src/calibre/devices/mtp/books.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os from calibre.devices.interface import BookList as BL from calibre.ebooks.metadata import title_sort from calibre.ebooks.metadata.book.base import Metadata from...
2,225
Python
.py
56
32.517857
77
0.638436
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,761
defaults.py
kovidgoyal_calibre/src/calibre/devices/mtp/defaults.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import re import traceback from calibre.constants import iswindows from polyglot.builtins import iteritems supernote_settings = { 'calibre_file_paths': {'metadata':...
2,590
Python
.py
61
29.016393
148
0.484909
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,762
__init__.py
kovidgoyal_calibre/src/calibre/devices/mtp/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
149
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,763
base.py
kovidgoyal_calibre/src/calibre/devices/mtp/base.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' from functools import wraps from calibre import prints from calibre.constants import DEBUG from calibre.devices.interface import DevicePlugin def debug(*args, **kwargs...
1,808
Python
.py
47
32.170213
75
0.672592
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,764
driver.py
kovidgoyal_calibre/src/calibre/devices/mtp/driver.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import importlib import json import os import posixpath import sys import traceback from io import BytesIO from typing import Sequence from calibre import prints from ca...
28,623
Python
.py
630
34.047619
159
0.582802
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,765
sysfs.py
kovidgoyal_calibre/src/calibre/devices/mtp/unix/sysfs.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import glob import os class MTPDetect: SYSFS_PATH = os.environ.get('SYSFS_PATH', '/sys') def __init__(self): self.base = os.path.join(self.SYSFS_PATH,...
1,602
Python
.py
42
26.261905
83
0.510652
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,766
__init__.py
kovidgoyal_calibre/src/calibre/devices/mtp/unix/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' ''' libmtp based drivers for MTP devices on Unix like platforms. '''
218
Python
.py
7
29.428571
60
0.703883
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,767
driver.py
kovidgoyal_calibre/src/calibre/devices/mtp/unix/driver.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import operator import pprint import sys import time import traceback from collections import namedtuple from functools import partial from threading import RLock from ca...
17,984
Python
.py
418
31.538278
105
0.574626
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,768
update.py
kovidgoyal_calibre/src/calibre/devices/mtp/unix/upstream/update.py
#!/usr/bin/env python3 __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os import shutil import subprocess base = os.path.dirname(os.path.abspath(__file__)) os.chdir('/tmp') if os.path.exists('libmtp'): shutil.rmtree('libmtp') s...
574
Python
.py
15
34.866667
90
0.66426
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,769
__init__.py
kovidgoyal_calibre/src/calibre/devices/mtp/windows/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en'
152
Python
.py
4
35.75
61
0.678322
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,770
driver.py
kovidgoyal_calibre/src/calibre/devices/mtp/windows/driver.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import threading import time import traceback from functools import partial, wraps from itertools import chain from calibre import as_unicode, force_unicode, prints from...
17,202
Python
.py
402
31.310945
114
0.572503
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,771
apnx.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx.py
__license__ = 'GPL v3' __copyright__ = '2011, John Schember <john at nachtimwald.com>, refactored: 2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' from typing import Dict, Optional ''' Generates and writes an APNX page mapping file. ''' import struct from calibre import fsync, ...
5,951
Python
.py
118
41.415254
178
0.630954
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,772
bookmark.py
kovidgoyal_calibre/src/calibre/devices/kindle/bookmark.py
__license__ = 'GPL v3' __docformat__ = 'restructuredtext en' import io import os from struct import unpack class Bookmark(): # {{{ ''' A simple class fetching bookmark data Kindle-specific ''' def __init__(self, path, id, book_format, bookmark_extension): self.book_format = book_forma...
14,437
Python
.py
283
30.067138
112
0.435417
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,773
driver.py
kovidgoyal_calibre/src/calibre/devices/kindle/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com>' __docformat__ = 'restructuredtext en' from calibre.devices.kindle.apnx import APNXBuilder ''' Device driver for Amazon's Kindle ''' import errno import hashlib import json import os import re from calibre import fsync, prints, ...
28,887
Python
.py
591
36.769882
126
0.575299
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,774
page_number_type.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/page_number_type.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' import enum class PageNumberTypes(enum.Enum): Arabic = "a" Roman = "r" Custom = "c"
225
Python
.py
8
25.25
64
0.658879
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,775
i_page_generator.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/i_page_generator.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' import struct from abc import ABCMeta, abstractmethod from typing import Optional from calibre.devices.kindle.apnx_page_generator.pages import Pages from calibre.ebooks.pdb.header import PdbHe...
1,778
Python
.py
42
35.904762
90
0.679234
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,776
page_group.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/page_group.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' from typing import List, Tuple, Union from calibre.devices.kindle.apnx_page_generator.page_number_type import PageNumberTypes class PageGroup: """Simulate constructor overloading""" ...
2,400
Python
.py
48
40.625
114
0.626547
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,777
pages.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/pages.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' import itertools from typing import List, Optional from calibre.devices.kindle.apnx_page_generator.page_group import PageGroup from calibre.devices.kindle.apnx_page_generator.page_number_type ...
1,436
Python
.py
33
36.848485
112
0.665948
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,778
pagebreak_page_generator.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/generators/pagebreak_page_generator.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' import re from typing import Optional from calibre.devices.kindle.apnx_page_generator.generators.fast_page_generator import FastPageGenerator from calibre.devices.kindle.apnx_page_generator.i_...
1,111
Python
.py
21
47.619048
103
0.721296
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,779
exact_page_generator.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/generators/exact_page_generator.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' from typing import Optional from calibre.devices.kindle.apnx_page_generator.generators.fast_page_generator import FastPageGenerator from calibre.devices.kindle.apnx_page_generator.i_page_gener...
1,461
Python
.py
31
40
104
0.689266
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,780
accurate_page_generator.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/generators/accurate_page_generator.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' from typing import Optional from calibre.devices.kindle.apnx_page_generator.generators.fast_page_generator import FastPageGenerator from calibre.devices.kindle.apnx_page_generator.i_page_gener...
3,448
Python
.py
86
28.94186
103
0.571087
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,781
fast_page_generator.py
kovidgoyal_calibre/src/calibre/devices/kindle/apnx_page_generator/generators/fast_page_generator.py
__license__ = 'GPL v3' __copyright__ = '2022, Vaso Peras-Likodric <vaso at vipl.in.rs>' __docformat__ = 'restructuredtext en' from typing import Optional from calibre.devices.kindle.apnx_page_generator.i_page_generator import IPageGenerator, mobi_html_length from calibre.devices.kindle.apnx_page_generator.pages impor...
1,517
Python
.py
33
38.575758
104
0.681416
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,782
driver.py
kovidgoyal_calibre/src/calibre/devices/iliad/driver.py
__license__ = 'GPL 3' __copyright__ = '2009, John Schember <john@nachtimwald.com>' __docformat__ = 'restructuredtext en' ''' Device driver for IRex Iliad ''' from calibre.devices.usbms.driver import USBMS class ILIAD(USBMS): name = 'IRex Iliad Device Interface' description = _('Communicate wit...
907
Python
.py
25
32.12
72
0.633754
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,783
driver.py
kovidgoyal_calibre/src/calibre/devices/edge/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal' __docformat__ = 'restructuredtext en' ''' Device driver for Barns and Nobel's Nook ''' from calibre.devices.usbms.driver import USBMS class EDGE(USBMS): name = 'Edge Device Interface' gui_name = _('Entourage Edge') descriptio...
947
Python
.py
25
33.72
63
0.630077
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,784
__init__.py
kovidgoyal_calibre/src/calibre/devices/prst1/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,785
driver.py
kovidgoyal_calibre/src/calibre/devices/prst1/driver.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' ''' Device driver for the SONY T1 devices ''' import os import re import time from contextlib import closing from datetime import date from calibre import fsync from calib...
33,588
Python
.py
688
35.328488
118
0.564049
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,786
driver.py
kovidgoyal_calibre/src/calibre/devices/eb600/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' ''' Device driver for the Netronix EB600 Windows PNP strings: ('USBSTOR\\DISK&VEN_NETRONIX&PROD_EBOOK&REV_062E\\6&1A275569&0&EB6001009 2W00000&0', 2, u'F:\\') ('USBSTOR\\DISK&VEN_NETRONIX...
13,271
Python
.py
321
35.193146
124
0.612256
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,787
driver.py
kovidgoyal_calibre/src/calibre/devices/user_defined/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from calibre.devices.usbms.driver import USBMS class USER_DEFINED(USBMS): name = 'User Defined USB driver' gui_name = 'User Defined USB Device' author = 'Kovi...
5,663
Python
.py
133
32.443609
82
0.522773
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,788
driver.py
kovidgoyal_calibre/src/calibre/devices/nokia/driver.py
__license__ = 'GPL v3' __copyright__ = '2009-2014, John Schember <john at nachtimwald.com> and Andres Gomez <agomez at igalia.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Nokia's internet tablet devices ''' from calibre.devices.usbms.driver import USBMS class N770(USBMS): name ...
2,413
Python
.py
60
35.4
108
0.614888
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,789
__init__.py
kovidgoyal_calibre/src/calibre/devices/android/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,790
driver.py
kovidgoyal_calibre/src/calibre/devices/android/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import io import os from calibre import fsync from calibre.devices.usbms.driver import USBMS from calibre.utils.resources import get_image_path as I from polyglot.builtins import string_or_bytes ...
15,803
Python
.py
358
31.139665
100
0.488551
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,791
__init__.py
kovidgoyal_calibre/src/calibre/devices/iriver/__init__.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en'
146
Python
.py
4
35
58
0.678571
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,792
driver.py
kovidgoyal_calibre/src/calibre/devices/iriver/driver.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import re from calibre.devices.usbms.driver import USBMS class IRIVER_STORY(USBMS): name = 'Iriver Story Device Interface' gui_name = 'Iriver Sto...
1,332
Python
.py
29
40.758621
76
0.626357
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,793
driver.py
kovidgoyal_calibre/src/calibre/devices/jetbook/driver.py
__license__ = 'GPL v3' __copyright__ = '2009, James Ralston <jralston at mindspring.com>' __docformat__ = 'restructuredtext en' ''' Device driver for Ectaco Jetbook firmware >= JL04_v030e ''' import os import re from calibre.constants import filesystem_encoding from calibre.devices.usbms.driver import USBMS from c...
4,185
Python
.py
114
30.333333
79
0.594943
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,794
driver.py
kovidgoyal_calibre/src/calibre/devices/boeye/driver.py
__license__ = 'GPL v3' __copyright__ = '2011, Ken <ken at szboeye.com>' __docformat__ = 'restructuredtext en' ''' Device driver for BOEYE serial readers ''' from calibre.devices.usbms.driver import USBMS class BOEYE_BEX(USBMS): name = 'BOEYE BEX reader driver' gui_name = 'BOEYE BEX' description = _(...
1,715
Python
.py
41
37.292683
117
0.639107
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,795
sony_cache.py
kovidgoyal_calibre/src/calibre/devices/prs505/sony_cache.py
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os import time from datetime import date from calibre import fsync, guess_type, isbytestring, prints from calibre.constants import DEBUG, preferred_encoding from cal...
32,106
Python
.py
712
31.620787
115
0.523253
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,796
__init__.py
kovidgoyal_calibre/src/calibre/devices/prs505/__init__.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' MEDIA_XML = 'database/cache/media.xml' MEDIA_EXT = 'database/cache/cacheExt.xml' CACHE_XML = 'Sony Reader/database/cache.xml' CACHE_EXT = 'Sony Reader/database/cacheExt.xml' MEDIA_THUMBNAIL = 'database/thumbnail' CACHE_THUMBNAIL =...
345
Python
.py
8
41.75
61
0.751497
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,797
driver.py
kovidgoyal_calibre/src/calibre/devices/prs505/driver.py
__license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' ''' Device driver for the SONY devices ''' import os import re import time from calibre import __appname__, fsync, prints from calibre.devices.prs505 import CACHE_EXT, CACHE_THUMBNAIL, CACHE_X...
12,762
Python
.py
267
35.558052
111
0.561913
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,798
hal.py
kovidgoyal_calibre/src/calibre/devices/usbms/hal.py
#!/usr/bin/env python # License: GPL v3 Copyright: 2021, Kovid Goyal <kovid at kovidgoyal.net> import time from jeepney import DBusAddress, DBusErrorResponse, MessageType, Properties, new_method_call from jeepney.io.blocking import open_dbus_connection from calibre.constants import DEBUG class HAL: def __init...
5,469
Python
.py
118
31.90678
134
0.510128
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
27,799
device.py
kovidgoyal_calibre/src/calibre/devices/usbms/device.py
__license__ = 'GPL v3' __copyright__ = '2009, John Schember <john at nachtimwald.com> ' \ '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' ''' Generic device driver. This is not a complete stand alone driver. It is intended to be subclassed with the relevant parts impl...
32,985
Python
.py
783
30.337165
132
0.548521
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)