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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26,800 | adding.py | kovidgoyal_calibre/src/calibre/gui2/preferences/adding.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os
from qt.core import QDialog, QFormLayout, Qt, QVBoxLayout
from calibre.gui2 import choose_dir, error_dialog, gprefs, question_dialog
from calibre.gui2.auto_add i... | 8,979 | Python | .py | 185 | 37.351351 | 107 | 0.612201 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,801 | emailp.py | kovidgoyal_calibre/src/calibre/gui2/preferences/emailp.py | #!/usr/bin/env python
# License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net>
import re
import textwrap
from qt.core import QAbstractItemView, QAbstractTableModel, QFont, Qt
from calibre.gui2 import gprefs
from calibre.gui2.preferences import AbortCommit, ConfigWidgetBase, test_widget
from calibre.g... | 11,453 | Python | .py | 256 | 34.285156 | 111 | 0.603244 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,802 | metadata_sources.py | kovidgoyal_calibre/src/calibre/gui2/preferences/metadata_sources.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from operator import attrgetter
from qt.core import (
QAbstractListModel,
QAbstractTableModel,
QCursor,
QDialog,
QDialogButtonBox,
QFrame,
QIcon... | 15,975 | Python | .py | 373 | 32.991957 | 123 | 0.619222 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,803 | columns.py | kovidgoyal_calibre/src/calibre/gui2/preferences/columns.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import copy
import sys
from contextlib import suppress
from qt.core import QAbstractItemView, QIcon, Qt, QTableWidgetItem
from calibre.gui2 import Application, error_dialo... | 17,613 | Python | .py | 362 | 37.146409 | 113 | 0.607558 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,804 | conversion.py | kovidgoyal_calibre/src/calibre/gui2/preferences/conversion.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import importlib
from qt.core import QHBoxLayout, QIcon, QListView, QScrollArea, QSize, QSizePolicy, QStackedWidget, QStringListModel, Qt, pyqtSignal
from calibre.customiz... | 5,960 | Python | .py | 132 | 35.454545 | 132 | 0.648238 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,805 | sending.py | kovidgoyal_calibre/src/calibre/gui2/preferences/sending.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from calibre.gui2.preferences import AbortCommit, ConfigWidgetBase, test_widget
from calibre.gui2.preferences.sending_ui import Ui_Form
from calibre.library.save_to_disk im... | 2,170 | Python | .py | 45 | 39.644444 | 84 | 0.663662 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,806 | misc.py | kovidgoyal_calibre/src/calibre/gui2/preferences/misc.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import textwrap
from calibre import get_proxies
from calibre.gui2 import config, gprefs, open_local_file
from calibre.gui2.preferences import ConfigWidgetBase, Setting, tes... | 2,619 | Python | .py | 58 | 37.241379 | 82 | 0.66195 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,807 | behavior.py | kovidgoyal_calibre/src/calibre/gui2/preferences/behavior.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import re
from functools import partial
from qt.core import QListWidgetItem, Qt
from calibre.constants import iswindows
from calibre.customize.ui import all_input_formats,... | 7,465 | Python | .py | 156 | 39.025641 | 111 | 0.647609 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,808 | main.py | kovidgoyal_calibre/src/calibre/gui2/preferences/main.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import re
import textwrap
from collections import OrderedDict
from functools import partial
from qt.core import (
QApplication,
QDialog,
QDialogButtonBox,
Q... | 16,443 | Python | .py | 380 | 32.936842 | 151 | 0.618354 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,809 | server.py | kovidgoyal_calibre/src/calibre/gui2/preferences/server.py | #!/usr/bin/env python
# License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net>
import errno
import json
import numbers
import os
import sys
import textwrap
import time
from qt.core import (
QApplication,
QCheckBox,
QComboBox,
QDialog,
QDialogButtonBox,
QDoubleSpinBox,
QFormL... | 51,090 | Python | .py | 1,231 | 31.51909 | 128 | 0.597676 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,810 | tweaks.py | kovidgoyal_calibre/src/calibre/gui2/preferences/tweaks.py | #!/usr/bin/env python
# License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net>
import textwrap
from collections import OrderedDict
from functools import partial
from operator import attrgetter
from qt.core import (
QAbstractItemView,
QAbstractListModel,
QApplication,
QComboBox,
QDi... | 21,338 | Python | .py | 538 | 29.496283 | 127 | 0.582803 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,811 | pdf_covers.py | kovidgoyal_calibre/src/calibre/gui2/metadata/pdf_covers.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os
import shutil
import sys
from threading import Thread
from qt.core import (
QAbstractItemView,
QApplication,
QDialog,
QDialogButtonBox,
QLa... | 6,215 | Python | .py | 148 | 33.709459 | 135 | 0.655521 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,812 | bulk_download.py | kovidgoyal_calibre/src/calibre/gui2/metadata/bulk_download.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os
import shutil
import time
from threading import Thread
from qt.core import QDialog, QDialogButtonBox, QGridLayout, QIcon, QLabel, Qt
from calibre.ebooks.metadata... | 9,631 | Python | .py | 233 | 31.188841 | 109 | 0.587852 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,813 | config.py | kovidgoyal_calibre/src/calibre/gui2/metadata/config.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import numbers
import textwrap
from qt.core import QCheckBox, QComboBox, QDoubleSpinBox, QGridLayout, QGroupBox, QLabel, QLineEdit, QListView, QSpinBox, Qt, QVBoxLayout, QW... | 4,941 | Python | .py | 119 | 31.865546 | 146 | 0.604375 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,814 | single_download.py | kovidgoyal_calibre/src/calibre/gui2/metadata/single_download.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
DEBUG_DIALOG = False
# Imports {{{
import os
import time
from io import BytesIO
from operator import attrgetter
from threading import Event, Thread
from qt.core import (
... | 44,537 | Python | .py | 1,056 | 31.892992 | 154 | 0.596866 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,815 | basic_widgets.py | kovidgoyal_calibre/src/calibre/gui2/metadata/basic_widgets.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os
import re
import shutil
import textwrap
import weakref
from datetime import date, datetime
from qt.core import (
QAbstractItemView,
QAction,
QApplicat... | 70,493 | Python | .py | 1,700 | 31.162353 | 144 | 0.590679 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,816 | __init__.py | kovidgoyal_calibre/src/calibre/gui2/metadata/__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) |
26,817 | single.py | kovidgoyal_calibre/src/calibre/gui2/metadata/single.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os
from datetime import datetime
from functools import partial
from qt.core import (
QAction,
QDialog,
QDialogButtonBox,
QFrame,
QGridLayout,
... | 58,131 | Python | .py | 1,186 | 38.537943 | 148 | 0.628357 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,818 | diff.py | kovidgoyal_calibre/src/calibre/gui2/metadata/diff.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
import os
import weakref
from collections import OrderedDict, namedtuple
from functools import partial
from qt.core import (
QAction,
QApplication,
QCheckBox,
QColor,
QDialog,
QDialogBu... | 31,368 | Python | .py | 733 | 33.140518 | 153 | 0.612192 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,819 | search_result.py | kovidgoyal_calibre/src/calibre/gui2/store/search_result.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
class SearchResult:
DRM_LOCKED = 1
DRM_UNLOCKED = 2
DRM_UNKNOWN = 3
def __init__(self):
self.store_name = ''
self.cover_url = ''
self.cover_data = None
... | 1,251 | Python | .py | 34 | 29.470588 | 146 | 0.57438 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,820 | web_store.py | kovidgoyal_calibre/src/calibre/gui2/store/web_store.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import json
import os
import shutil
from qt.core import QApplication, QHBoxLayout, QIcon, QLabel, QProgressBar, QPushButton, QSize, QUrl, QVBoxLayout, QWidget, pyqtSignal
from qt.webengine import QWebEngineDownloadRequest,... | 9,833 | Python | .py | 219 | 36.086758 | 134 | 0.64158 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,821 | loader.py | kovidgoyal_calibre/src/calibre/gui2/store/loader.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import io
import re
import sys
import time
from collections import OrderedDict
from threading import Thread
from zlib import decompressobj
from calibre import prints
fro... | 7,007 | Python | .py | 176 | 28.852273 | 84 | 0.564227 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,822 | amazon_live.py | kovidgoyal_calibre/src/calibre/gui2/store/amazon_live.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net>
from urllib.parse import urlencode
from lxml import etree, html
from calibre.gui2.store.search_result import SearchResult
from calibre.scraper.simple import read_url
module_version = 1 # needed for live updates
def se... | 3,477 | Python | .py | 74 | 38.702703 | 111 | 0.617612 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,823 | amazon_base.py | kovidgoyal_calibre/src/calibre/gui2/store/amazon_base.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net>
from threading import Lock
from time import monotonic
from qt.core import QUrl
from calibre.gui2 import open_url
lock = Lock()
cached_mod = None
cached_time = -10000000
def live_module():
global cached_time, cached_... | 1,783 | Python | .py | 43 | 35.55814 | 112 | 0.675362 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,824 | __init__.py | kovidgoyal_calibre/src/calibre/gui2/store/__init__.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from calibre.utils.filenames import ascii_filename
class StorePlugin: # {{{
'''
A plugin representing an online ebook repository (store). The store can
be a commercial store that sel... | 8,527 | Python | .py | 158 | 45.917722 | 107 | 0.696598 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,825 | web_store_dialog.py | kovidgoyal_calibre/src/calibre/gui2/store/web_store_dialog.py | #!/usr/bin/env python
# License: GPLv3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import json
from base64 import standard_b64encode
from itertools import count
counter = count()
class WebStoreDialog:
def __init__(
self, gui, base_url, parent=None, detail_url=None, create_browser=None
)... | 1,226 | Python | .py | 37 | 25.297297 | 78 | 0.595763 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,826 | basic_config.py | kovidgoyal_calibre/src/calibre/gui2/store/basic_config.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from qt.core import QWidget
from calibre.gui2.store.basic_config_widget_ui import Ui_Form
class BasicStoreConfigWidget(QWidget, Ui_Form):
def __init__(self, store):
QWidget.__init__(... | 1,005 | Python | .py | 24 | 35.458333 | 78 | 0.683557 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,827 | opensearch_store.py | kovidgoyal_calibre/src/calibre/gui2/store/opensearch_store.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
from qt.core import QUrl
from calibre import browser, guess_extension
from calibre.gui2 import open_url
from calibre.gui2.store import StorePlugin
from calibre.gui2.... | 3,785 | Python | .py | 80 | 35.55 | 118 | 0.564875 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,828 | store.py | kovidgoyal_calibre/src/calibre/gui2/store/config/store.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
'''
Config widget access functions for configuring the store action.
'''
def config_widget():
from calibre.gui2.store.config.search.search_widget import StoreConfigWidget
return StoreConfi... | 400 | Python | .py | 11 | 33.818182 | 80 | 0.760417 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,829 | models.py | kovidgoyal_calibre/src/calibre/gui2/store/config/chooser/models.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from qt.core import QAbstractItemModel, QIcon, QModelIndex, QStyledItemDelegate, Qt
from calibre import fit_image
from calibre.customize.ui import disable_plugin, enable_plugin, is_disabled
from c... | 11,973 | Python | .py | 265 | 32.856604 | 260 | 0.552528 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,830 | adv_search_builder.py | kovidgoyal_calibre/src/calibre/gui2/store/config/chooser/adv_search_builder.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import re
from qt.core import QDialog, QDialogButtonBox
from calibre.gui2.store.config.chooser.adv_search_builder_ui import Ui_Dialog
from calibre.library.caches import CONTAINS_MATCH, EQUALS_MATC... | 4,843 | Python | .py | 121 | 30.553719 | 93 | 0.57492 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,831 | chooser_dialog.py | kovidgoyal_calibre/src/calibre/gui2/store/config/chooser/chooser_dialog.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from qt.core import QDialog, QDialogButtonBox, QVBoxLayout
from calibre.gui2.store.config.chooser.chooser_widget import StoreChooserWidget
class StoreChooserDialog(QDialog):
def __init__(sel... | 779 | Python | .py | 17 | 39.411765 | 79 | 0.713528 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,832 | results_view.py | kovidgoyal_calibre/src/calibre/gui2/store/config/chooser/results_view.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from functools import partial
from qt.core import QMenu, QSize, Qt, QTreeView
from calibre.customize.ui import store_plugins
from calibre.gui2.metadata.single_download import RichTextDelegate
from... | 1,595 | Python | .py | 35 | 38.028571 | 86 | 0.678548 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,833 | chooser_widget.py | kovidgoyal_calibre/src/calibre/gui2/store/config/chooser/chooser_widget.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from qt.core import QComboBox, QDialog, QIcon, QLineEdit, QWidget
from calibre.gui2.store.config.chooser.adv_search_builder import AdvSearchBuilderDialog
from calibre.gui2.store.config.chooser.choo... | 1,574 | Python | .py | 27 | 51.37037 | 133 | 0.729695 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,834 | search_widget.py | kovidgoyal_calibre/src/calibre/gui2/store/config/search/search_widget.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from qt.core import QWidget
from calibre.gui2 import JSONConfig
from calibre.gui2.store.config.search.search_widget_ui import Ui_Form
class StoreConfigWidget(QWidget, Ui_Form):
def __init__(... | 1,945 | Python | .py | 32 | 53.46875 | 90 | 0.695744 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,835 | mills_boon_uk_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/mills_boon_uk_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 4 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
tr... | 2,931 | Python | .py | 64 | 35.296875 | 120 | 0.584707 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,836 | amazon_in_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_in_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 20 # Needed for dynamic plugin loading
from calibre.gui2.store import StorePlugin
try:
from ca... | 814 | Python | .py | 21 | 35.238095 | 82 | 0.723214 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,837 | weightless_books_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/weightless_books_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 1 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
tr... | 2,760 | Python | .py | 60 | 35.45 | 103 | 0.590519 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,838 | amazon_mx_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_mx_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
store_version = 1 # Needed for dynamic plugin loading
from calibre.gui2.store import StorePlugin
try:
from calibre.gui2.store.amazon_base import AmazonStore
except ImportError:
class Amazon... | 742 | Python | .py | 20 | 33.45 | 71 | 0.713885 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,839 | nexto_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/nexto_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 7 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011-2023, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
import re
from base64 import st... | 4,124 | Python | .py | 82 | 38.756098 | 109 | 0.571998 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,840 | beam_ebooks_de_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/beam_ebooks_de_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 4 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
try:
from urllib.parse import ... | 2,809 | Python | .py | 62 | 35.129032 | 110 | 0.588515 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,841 | rw2010_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/rw2010_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 1 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
import re
from contextlib import clo... | 3,081 | Python | .py | 64 | 37.390625 | 115 | 0.57958 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,842 | bn_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/bn_plugin.py | # -*- coding: utf-8 -*-
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 4 # Needed for dynamic plugin loading
from contextlib import closing
try:
from urllib.parse import quote_plus
except ... | 3,813 | Python | .py | 82 | 36.512195 | 127 | 0.591644 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,843 | amazon_it_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_it_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 15 # Needed for dynamic plugin loading
from contextlib import closing
try:
from urllib.parse i... | 5,699 | Python | .py | 124 | 35.604839 | 142 | 0.582507 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,844 | empik_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/empik_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 10 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011-2023, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
from base64 import b64encode
f... | 3,525 | Python | .py | 71 | 39.929577 | 126 | 0.60286 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,845 | smashwords_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/smashwords_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 6 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import random
import re
from conte... | 4,169 | Python | .py | 96 | 34.260417 | 98 | 0.593325 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,846 | archive_org_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/archive_org_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 4 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from calibre.gui2.store.basic_conf... | 1,322 | Python | .py | 27 | 43.777778 | 92 | 0.701248 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,847 | amazon_de_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_de_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 16 # Needed for dynamic plugin loading
from calibre.gui2.store import StorePlugin
try:
from ca... | 868 | Python | .py | 23 | 34.043478 | 82 | 0.716168 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,848 | ozon_ru_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/ozon_ru_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 3 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011-2013, Roman Mukhin <ramses_ru at hotmail.com>'
__docformat__ = 'restructuredtext en'
from contextlib import clo... | 3,204 | Python | .py | 73 | 37.082192 | 105 | 0.658073 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,849 | google_books_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/google_books_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 7 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
tr... | 4,252 | Python | .py | 98 | 34.153061 | 123 | 0.602375 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,850 | woblink_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/woblink_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 15 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011-2019, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
from base64 import b64encode
... | 4,123 | Python | .py | 91 | 38.43956 | 129 | 0.646281 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,851 | swiatebookow_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/swiatebookow_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2017-2019, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
from base64 import b64encode
f... | 3,488 | Python | .py | 72 | 37.569444 | 139 | 0.589154 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,852 | publio_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/publio_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 9 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2012-2017, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
try:
from urllib.parse imp... | 3,487 | Python | .py | 72 | 37.527778 | 142 | 0.58515 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,853 | manybooks_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/manybooks_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import mimetypes
from contextlib i... | 4,880 | Python | .py | 93 | 41.430108 | 146 | 0.590842 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,854 | libri_de_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/libri_de_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 8 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
tr... | 3,848 | Python | .py | 81 | 35 | 106 | 0.5584 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,855 | ebookshoppe_uk_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/ebookshoppe_uk_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 1 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
try:
from urllib.parse import ... | 3,597 | Python | .py | 76 | 36.092105 | 100 | 0.592011 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,856 | legimi_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/legimi_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 12 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011-2023, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
from base64 import b64encode
... | 3,459 | Python | .py | 72 | 38.930556 | 151 | 0.62474 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,857 | kobo_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/kobo_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 12 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
try:
from urllib.parse import... | 4,676 | Python | .py | 106 | 35.443396 | 121 | 0.625303 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,858 | pragmatic_bookshelf_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/pragmatic_bookshelf_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 1 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from calibre.gui2.store.basic_conf... | 940 | Python | .py | 18 | 47.444444 | 82 | 0.73523 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,859 | bubok_publishing_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/bubok_publishing_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2014, Rafael Vega <rafavega@gmail.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
try:
... | 2,647 | Python | .py | 56 | 37.678571 | 82 | 0.609728 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,860 | amazon_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 20 # Needed for dynamic plugin loading
from calibre.gui2.store import StorePlugin
try:
from ca... | 620 | Python | .py | 17 | 33.294118 | 82 | 0.752525 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,861 | litres_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/litres_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, Roman Mukhin <ramses_ru at hotmail.com>'
__docformat__ = 'restructuredtext en'
import random
import re
try:
... | 6,031 | Python | .py | 146 | 33.506849 | 118 | 0.624594 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,862 | virtualo_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/virtualo_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 12 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011-2023, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
import re
from base64 import ... | 3,584 | Python | .py | 73 | 39.506849 | 155 | 0.601778 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,863 | ebooksgratuits_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/ebooksgratuits_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 1 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2012, Florent FAYOLLE <florent.fayolle69@gmail.com>'
__docformat__ = 'restructuredtext en'
from calibre.gui2.store.b... | 1,108 | Python | .py | 22 | 44.454545 | 82 | 0.714286 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,864 | gutenberg_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/gutenberg_plugin.py | # -*- coding: utf-8 -*-
# License: GPLv3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 8 # Needed for dynamic plugin loading
import mimetypes
try:
from urllib.parse import quote_plus
except ImportError:
... | 3,325 | Python | .py | 82 | 32.243902 | 118 | 0.614907 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,865 | amazon_fr_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_fr_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 16 # Needed for dynamic plugin loading
from contextlib import closing
try:
from urllib.parse i... | 4,882 | Python | .py | 107 | 35.663551 | 115 | 0.588087 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,866 | ebook_nl_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/ebook_nl_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
tr... | 4,164 | Python | .py | 82 | 39.207317 | 127 | 0.574416 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,867 | feedbooks_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/feedbooks_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 1 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from calibre.gui2.store.basic_conf... | 1,067 | Python | .py | 22 | 41.5 | 82 | 0.689489 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,868 | amazon_uk_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_uk_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 20 # Needed for dynamic plugin loading
from calibre.gui2.store import StorePlugin
try:
from ca... | 823 | Python | .py | 21 | 35.666667 | 82 | 0.722573 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,869 | chitanka_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/chitanka_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, Alex Stanev <alex@stanev.org>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
try:
... | 4,659 | Python | .py | 99 | 36.262626 | 129 | 0.567711 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,870 | baen_webscription_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/baen_webscription_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
tr... | 3,226 | Python | .py | 76 | 33.631579 | 120 | 0.60422 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,871 | amazon_es_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_es_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 15 # Needed for dynamic plugin loading
from contextlib import closing
try:
from urllib.parse i... | 5,700 | Python | .py | 124 | 35.612903 | 142 | 0.582221 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,872 | biblio_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/biblio_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2012, Alex Stanev <alex@stanev.org>'
__docformat__ = 'restructuredtext en'
try:
from urllib.parse import quote_p... | 3,951 | Python | .py | 78 | 38.871795 | 152 | 0.58089 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,873 | ebooks_com_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/ebooks_com_plugin.py | # -*- coding: utf-8 -*-
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 4 # Needed for dynamic plugin loading
import re
from contextlib import closing
try:
from urllib.parse import quote_pl... | 4,053 | Python | .py | 100 | 33.97 | 113 | 0.641749 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,874 | bubok_portugal_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/bubok_portugal_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 2 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2014, Rafael Vega <rafavega@gmail.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
try:
... | 2,645 | Python | .py | 56 | 37.642857 | 82 | 0.609424 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,875 | amazon_au_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_au_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 20 # Needed for dynamic plugin loading
from calibre.gui2.store import StorePlugin
try:
from ca... | 826 | Python | .py | 21 | 35.809524 | 82 | 0.723618 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,876 | amazon_ca_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/amazon_ca_plugin.py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 20 # Needed for dynamic plugin loading
from calibre.gui2.store import StorePlugin
try:
from ca... | 814 | Python | .py | 21 | 35.238095 | 82 | 0.723214 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,877 | ebookpoint_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/ebookpoint_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 9 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011-2023, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
import re
from base64 import b... | 3,335 | Python | .py | 71 | 37.591549 | 133 | 0.604752 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,878 | wolnelektury_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/wolnelektury_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 4 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2012-2023, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
from contextlib import closing
... | 2,588 | Python | .py | 58 | 34.689655 | 82 | 0.602073 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,879 | cache_update_thread.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/mobileread/cache_update_thread.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import time
from contextlib import closing
from threading import Thread
from lxml import ... | 3,189 | Python | .py | 76 | 31.342105 | 82 | 0.576277 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,880 | models.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/mobileread/models.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from operator import attrgetter
from qt.core import QAbstractItemModel, QModelIndex, Qt, ... | 6,197 | Python | .py | 161 | 27.285714 | 106 | 0.551598 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,881 | adv_search_builder.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/mobileread/adv_search_builder.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import re
from qt.core import QDialog, QDialogButtonBox
from calibre.gui2.store.stores.m... | 4,170 | Python | .py | 107 | 29.831776 | 93 | 0.564293 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,882 | store_dialog.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/mobileread/store_dialog.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from qt.core import QComboBox, QDialog, QIcon, Qt
from calibre.gui2.store.stores.mobiler... | 3,605 | Python | .py | 65 | 46.953846 | 155 | 0.68608 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,883 | cache_progress_dialog.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/mobileread/cache_progress_dialog.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from qt.core import QDialog
from calibre.gui2.store.stores.mobileread.cache_progress_dial... | 1,674 | Python | .py | 47 | 28.489362 | 83 | 0.65239 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,884 | mobileread_plugin.py | kovidgoyal_calibre/src/calibre/gui2/store/stores/mobileread/mobileread_plugin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import os
from threading import Lock
from qt.core import QCoreApplication, QUrl
from cal... | 4,538 | Python | .py | 101 | 33.455446 | 91 | 0.602129 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,885 | models.py | kovidgoyal_calibre/src/calibre/gui2/store/search/models.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import re
import string
from operator import attrgetter
from qt.core import QAbstractItemModel, QApplication, QIcon, QModelIndex, QPixmap, QSize, Qt, pyqtSignal
from calibre import force_unicode
f... | 19,299 | Python | .py | 435 | 31.970115 | 341 | 0.547619 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,886 | adv_search_builder.py | kovidgoyal_calibre/src/calibre/gui2/store/search/adv_search_builder.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import re
from qt.core import QDialog, QDialogButtonBox
from calibre.gui2.store.search.adv_search_builder_ui import Ui_Dialog
from calibre.library.caches import CONTAINS_MATCH, EQUALS_MATCH
from c... | 5,207 | Python | .py | 127 | 31.574803 | 135 | 0.575069 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,887 | download_thread.py | kovidgoyal_calibre/src/calibre/gui2/store/search/download_thread.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import traceback
from contextlib import closing
from threading import Thread
from calibre import browser
from calibre.constants import DEBUG
from calibre.utils.img import scale_image
from polyglot.... | 7,232 | Python | .py | 183 | 29.704918 | 96 | 0.60841 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,888 | search.py | kovidgoyal_calibre/src/calibre/gui2/store/search/search.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import re
from random import shuffle
from qt.core import QCheckBox, QDialog, QDialogButtonBox, QGridLayout, QIcon, QLabel, QSize, QStyle, Qt, QTabWidget, QTimer, QVBoxLayout, QWidget
from calibre.... | 18,986 | Python | .py | 386 | 39.727979 | 155 | 0.63892 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,889 | results_view.py | kovidgoyal_calibre/src/calibre/gui2/store/search/results_view.py | __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
from functools import partial
from qt.core import QIcon, QMenu, QStyledItemDelegate, Qt, QTreeView, pyqtSignal
from calibre import fit_image
from calibre.gui2 import empty_index
from calibre.gui2.... | 2,505 | Python | .py | 52 | 39.076923 | 144 | 0.641215 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,890 | dialog.py | kovidgoyal_calibre/src/calibre/gui2/fts/dialog.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net>
import os
from qt.core import QAction, QDialogButtonBox, QHBoxLayout, QIcon, QLabel, QSize, QStackedWidget, Qt, QVBoxLayout
from calibre.gui2 import error_dialog, warning_dialog
from calibre.gui2.fts.scan import ScanStatu... | 5,718 | Python | .py | 120 | 38.125 | 117 | 0.634684 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,891 | search.py | kovidgoyal_calibre/src/calibre/gui2/fts/search.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net>
import os
import re
import time
import traceback
from contextlib import suppress
from functools import partial
from itertools import count
from threading import Event, Thread
from qt.core import (
QAbstractItemModel,
... | 36,225 | Python | .py | 823 | 34.600243 | 151 | 0.611784 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,892 | scan.py | kovidgoyal_calibre/src/calibre/gui2/fts/scan.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net>
import os
from qt.core import QCheckBox, QDialog, QDialogButtonBox, QHBoxLayout, QIcon, QLabel, QPushButton, QRadioButton, QVBoxLayout, QWidget, pyqtSignal
from calibre.db.listeners import EventType
from calibre.db.utils i... | 8,322 | Python | .py | 189 | 35.142857 | 145 | 0.634535 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,893 | utils.py | kovidgoyal_calibre/src/calibre/gui2/fts/utils.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net>
from calibre.gui2.ui import get_gui
def get_db():
if hasattr(get_db, 'db'):
return get_db.db.new_api
return get_gui().current_db.new_api
| 252 | Python | .py | 7 | 32.142857 | 72 | 0.701245 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,894 | models.py | kovidgoyal_calibre/src/calibre/gui2/library/models.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import functools
import numbers
import os
import re
import sys
import time
import traceback
from collections import defaultdict, namedtuple
from itertools import groupby
fr... | 77,328 | Python | .py | 1,729 | 30.847311 | 155 | 0.526839 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,895 | delegates.py | kovidgoyal_calibre/src/calibre/gui2/library/delegates.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os
import sys
from datetime import datetime
from qt.core import (
QAbstractTextDocumentLayout,
QApplication,
QComboBox,
QDate,
QDateTime,
QDa... | 32,417 | Python | .py | 724 | 35.578729 | 135 | 0.638659 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,896 | annotations.py | kovidgoyal_calibre/src/calibre/gui2/library/annotations.py | #!/usr/bin/env python
# License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>
import codecs
import json
import os
import re
from functools import lru_cache, partial
from urllib.parse import quote
from qt.core import (
QAbstractItemView,
QApplication,
QCheckBox,
QComboBox,
QDateTim... | 42,028 | Python | .py | 958 | 34.546973 | 156 | 0.611614 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,897 | caches.py | kovidgoyal_calibre/src/calibre/gui2/library/caches.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
from collections import OrderedDict
from threading import Lock, current_thread
from qt.core import QImage, QPixmap
from calibre.db.utils import ThumbnailCache as TC
from polyglot.builtins import itervalues
... | 3,024 | Python | .py | 72 | 32.263889 | 92 | 0.599454 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,898 | __init__.py | kovidgoyal_calibre/src/calibre/gui2/library/__init__.py | #!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
DEFAULT_SORT = ('timestamp', False)
| 183 | Python | .py | 5 | 35 | 58 | 0.685714 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
26,899 | notes.py | kovidgoyal_calibre/src/calibre/gui2/library/notes.py | #!/usr/bin/env python
# License: GPLv3 Copyright: 2023, Kovid Goyal <kovid at kovidgoyal.net>
import os
from functools import partial
from qt.core import (
QAbstractItemView,
QCheckBox,
QDialog,
QDialogButtonBox,
QFont,
QHBoxLayout,
QIcon,
QKeySequence,
QLabel,
QMenu,
QPush... | 20,781 | Python | .py | 477 | 33.9413 | 133 | 0.6147 | kovidgoyal/calibre | 19,243 | 2,250 | 4 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |