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,400
config.py
kovidgoyal_calibre/manual/plugin_examples/interface_demo/config.py
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from calibre.utils.config import JSONConfig from qt.core import QHBoxLayout, QLabel, QLineEdit, QWidget # This is where a...
1,217
Python
.py
28
38.928571
69
0.706282
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,401
__init__.py
kovidgoyal_calibre/manual/plugin_examples/interface_demo/__init__.py
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' # The class that all Interface Action plugin wrappers must inherit from from calibre.customize import InterfaceActionBase ...
3,080
Python
.py
63
41.904762
79
0.687333
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,402
main.py
kovidgoyal_calibre/manual/plugin_examples/interface_demo/main.py
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' if False: # This is here to keep my python error checker from complaining about # the builtin functions that will ...
6,297
Python
.py
127
39.456693
97
0.631348
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,403
svg.py
kovidgoyal_calibre/src/odf/svg.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
1,758
Python
.py
42
39.357143
80
0.747194
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,404
manifest.py
kovidgoyal_calibre/src/odf/manifest.py
#!/usr/bin/env python # Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
1,365
Python
.py
33
39.363636
80
0.764973
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,405
teletype.py
kovidgoyal_calibre/src/odf/teletype.py
# # Create and extract text from ODF, handling whitespace correctly. # Copyright (C) 2008 J. David Eisenberg # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the L...
5,121
Python
.py
118
33.279661
95
0.599237
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,406
dr3d.py
kovidgoyal_calibre/src/odf/dr3d.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
1,398
Python
.py
33
40.181818
80
0.759259
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,407
form.py
kovidgoyal_calibre/src/odf/form.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
3,215
Python
.py
81
36.444444
80
0.712565
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,408
odfmanifest.py
kovidgoyal_calibre/src/odf/odfmanifest.py
#!/usr/bin/env python # Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
3,614
Python
.py
92
34.402174
102
0.633686
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,409
config.py
kovidgoyal_calibre/src/odf/config.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
1,392
Python
.py
31
42.83871
80
0.767062
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,410
meta.py
kovidgoyal_calibre/src/odf/meta.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
2,101
Python
.py
49
40.102041
80
0.743691
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,411
namespaces.py
kovidgoyal_calibre/src/odf/namespaces.py
# Copyright (C) 2006-2010 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
4,328
Python
.py
104
39.403846
85
0.675669
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,412
dc.py
kovidgoyal_calibre/src/odf/dc.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
2,206
Python
.py
54
38.944444
80
0.717913
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,413
presentation.py
kovidgoyal_calibre/src/odf/presentation.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
2,673
Python
.py
62
40.129032
80
0.740654
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,414
style.py
kovidgoyal_calibre/src/odf/style.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
4,611
Python
.py
105
40.333333
80
0.728239
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,415
thumbnail.py
kovidgoyal_calibre/src/odf/thumbnail.py
#!/usr/bin/env python # This contains a 128x128 px thumbnail in PNG format # Taken from https://cgit.freedesktop.org/libreoffice/core/tree/sysui/desktop/icons/hicolor/128x128/apps/main.png # License: GPL-3 import base64 iconstr = b""" iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAA3NCSVQICAjb4U/gAAAACXBIWXMA AA3XAAA...
3,737
Python
.py
58
62.931034
113
0.938214
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,416
attrconverters.py
kovidgoyal_calibre/src/odf/attrconverters.py
# Copyright (C) 2006-2010 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later vers...
76,759
Python
.py
1,449
44.615597
124
0.603415
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,417
anim.py
kovidgoyal_calibre/src/odf/anim.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
1,835
Python
.py
45
38.133333
80
0.738662
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,418
office.py
kovidgoyal_calibre/src/odf/office.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
3,298
Python
.py
75
40.84
82
0.727818
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,419
draw.py
kovidgoyal_calibre/src/odf/draw.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
5,525
Python
.py
133
37.210526
89
0.699641
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,420
element.py
kovidgoyal_calibre/src/odf/element.py
#!/usr/bin/env python # Copyright (C) 2007-2010 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
19,721
Python
.py
439
35.640091
133
0.628131
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,421
elementtypes.py
kovidgoyal_calibre/src/odf/elementtypes.py
#!/usr/bin/env python # Copyright (C) 2008 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your opti...
10,116
Python
.py
334
25.661677
80
0.641944
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,422
text.py
kovidgoyal_calibre/src/odf/text.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
17,013
Python
.py
380
40.936842
80
0.721116
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,423
table.py
kovidgoyal_calibre/src/odf/table.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
9,289
Python
.py
209
40.736842
80
0.72306
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,424
script.py
kovidgoyal_calibre/src/odf/script.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
1,082
Python
.py
25
41.88
80
0.779258
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,425
number.py
kovidgoyal_calibre/src/odf/number.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
3,086
Python
.py
74
38.567568
80
0.728533
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,426
odf2moinmoin.py
kovidgoyal_calibre/src/odf/odf2moinmoin.py
# Copyright (C) 2006-2008 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
18,178
Python
.py
440
30.022727
114
0.566617
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,427
grammar.py
kovidgoyal_calibre/src/odf/grammar.py
# Copyright (C) 2006-2010 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later vers...
288,414
Python
.py
8,430
20.358956
80
0.422386
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,428
opendocument.py
kovidgoyal_calibre/src/odf/opendocument.py
# Copyright (C) 2006-2010 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
26,809
Python
.py
620
34.172581
121
0.629142
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,429
userfield.py
kovidgoyal_calibre/src/odf/userfield.py
#!/usr/bin/env python # Copyright (C) 2006-2009 Søren Roug, European Environment Agency # # This is free software. You may redistribute it under the terms # of the Apache license and the GNU General Public License Version # 2 or at your option any later version. # # This program is distributed in the hope that it wil...
5,374
Python
.py
130
32.861538
80
0.622743
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,430
math.py
kovidgoyal_calibre/src/odf/math.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
1,044
Python
.py
25
40.36
80
0.778875
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,431
chart.py
kovidgoyal_calibre/src/odf/chart.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
2,592
Python
.py
63
38.095238
80
0.726248
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,432
easyliststyle.py
kovidgoyal_calibre/src/odf/easyliststyle.py
# Create a <text:list-style> element from a text string. # Copyright (C) 2008 J. David Eisenberg # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or #...
3,705
Python
.py
93
33.83871
92
0.665
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,433
xforms.py
kovidgoyal_calibre/src/odf/xforms.py
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ver...
1,208
Python
.py
29
39.931034
80
0.766667
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,434
load.py
kovidgoyal_calibre/src/odf/load.py
#!/usr/bin/env python # Copyright (C) 2007-2008 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
4,115
Python
.py
107
30.906542
88
0.620025
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,435
odf2xhtml.py
kovidgoyal_calibre/src/odf/odf2xhtml.py
#!/usr/bin/env python # Copyright (C) 2006-2010 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your ...
71,246
Python
.py
1,582
35.945006
119
0.579444
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,436
__init__.py
kovidgoyal_calibre/src/templite/__init__.py
#!/usr/bin/env python # # Templite+ # A light-weight, fully functional, general purpose templating engine # # Copyright (c) 2009 joonis new media # Author: Thimo Kraemer <thimo.kraemer@joonis.de> # # Based on Templite - Tomer Filiba # http://code.activestate.com/recipes/496702/ # # ...
3,749
Python
.py
88
33.511364
91
0.555708
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,437
html_entities.py
kovidgoyal_calibre/src/polyglot/html_entities.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org> from html.entities import name2codepoint name2codepoint
179
Python
.py
5
34.4
73
0.819767
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,438
functools.py
kovidgoyal_calibre/src/polyglot/functools.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net> from functools import lru_cache lru_cache
164
Python
.py
5
31.4
72
0.789809
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,439
queue.py
kovidgoyal_calibre/src/polyglot/queue.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org> from queue import Queue, Empty, Full, PriorityQueue, LifoQueue # noqa
193
Python
.py
4
47
73
0.776596
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,440
io.py
kovidgoyal_calibre/src/polyglot/io.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net> from io import BytesIO, StringIO class PolyglotStringIO(StringIO): def __init__(self, initial_data=None, encoding='utf-8', errors='strict'): StringIO.__init__(self) self._enco...
1,069
Python
.py
26
33.576923
77
0.64182
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,441
http_client.py
kovidgoyal_calibre/src/polyglot/http_client.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org> from http.client import ( _CS_IDLE, _CS_REQ_SENT, BAD_REQUEST, FORBIDDEN, FOUND, HTTP_VERSION_NOT_SUPPORTED, INTERNAL_SERVER_ERROR, METHOD_NOT_ALLOWED, MOVED_PERM...
1,205
Python
.py
37
28.162162
153
0.744425
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,442
smtplib.py
kovidgoyal_calibre/src/polyglot/smtplib.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net> import sys from functools import partial class FilteredLog: ' Hide AUTH credentials from the log ' def __init__(self, debug_to=None): self.debug_to = debug_to or partial(print, fi...
1,399
Python
.py
39
27.589744
79
0.542411
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,443
builtins.py
kovidgoyal_calibre/src/polyglot/builtins.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> import os import sys is_py3 = sys.version_info.major >= 3 native_string_type = str iterkeys = iter def hasenv(x): return getenv(x) is not None def as_bytes(x, encoding='utf-8'): if isins...
3,058
Python
.py
103
23.796117
78
0.624872
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,444
plistlib.py
kovidgoyal_calibre/src/polyglot/plistlib.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net> from plistlib import loads, dumps # noqa loads_binary_or_xml = loads
191
Python
.py
5
37
72
0.767568
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,445
reprlib.py
kovidgoyal_calibre/src/polyglot/reprlib.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org> from reprlib import repr repr
153
Python
.py
5
29.2
73
0.794521
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,446
http_cookie.py
kovidgoyal_calibre/src/polyglot/http_cookie.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org> from http.cookies import SimpleCookie # noqa from http.cookiejar import CookieJar, Cookie # noqa
223
Python
.py
5
43.4
73
0.78341
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,447
socketserver.py
kovidgoyal_calibre/src/polyglot/socketserver.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org> from socketserver import TCPServer, ThreadingMixIn # noqa
181
Python
.py
4
44
73
0.795455
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,448
binary.py
kovidgoyal_calibre/src/polyglot/binary.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net> from base64 import standard_b64decode, standard_b64encode from binascii import hexlify, unhexlify from polyglot.builtins import unicode_type def as_base64_bytes(x, enc='utf-8'): if isinstance...
1,346
Python
.py
38
30.552632
72
0.679597
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,449
http_server.py
kovidgoyal_calibre/src/polyglot/http_server.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from http.server import HTTPServer, SimpleHTTPRequestHandler # noqa
190
Python
.py
4
46.25
72
0.794595
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,450
urllib.py
kovidgoyal_calibre/src/polyglot/urllib.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from urllib.request import (build_opener, getproxies, install_opener, # noqa HTTPBasicAuthHandler, HTTPCookieProcessor, HTTPDigestAuthHandler, # noqa url2pathname, urlopen, Request...
1,010
Python
.py
21
43.380952
88
0.695829
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,451
live_css.pyj
kovidgoyal_calibre/src/pyj/live_css.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> # globals: CSSRule from __python__ import bound_methods, hash_literals INHERITED_PROPS = { # {{{ 'azimuth': '2', 'border-collapse': '2', 'border-spacing': '2', 'caption-side': '2', 'color': ...
7,399
Python
.py
207
29.550725
156
0.575255
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,452
editor.pyj
kovidgoyal_calibre/src/pyj/editor.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from fs_images import fix_fullscreen_svg_images from live_css import get_matched_css, get_sourceline_address from qt import from_python, to_p...
7,060
Python
.py
185
30.87027
135
0.640883
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,453
test_utils.pyj
kovidgoyal_calibre/src/pyj/test_utils.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from testing import assert_equal, test from utils import fmt_sidx, human_readable, rating_to_stars from session import deep_eq @test def misc_utils(): assert_equal...
718
Python
.py
15
44.533333
112
0.683908
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,454
test.pyj
kovidgoyal_calibre/src/pyj/test.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals import traceback import initialize # noqa: unused-import import test_date # noqa: unused-import import test_utils # noqa: unused-import import read_book.test_cfi # ...
1,790
Python
.py
54
27.314815
91
0.639582
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,455
session.pyj
kovidgoyal_calibre/src/pyj/session.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from uuid import short_uuid from ajax import ajax_send all_settings = { 'copy_to_library_dupes': {'default': 'add;overwrite', 'category': 'book_list'}, 'last_s...
17,045
Python
.py
354
40.443503
145
0.620963
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,456
initialize.pyj
kovidgoyal_calibre/src/pyj/initialize.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from pythonize import strings strings()
177
Python
.py
5
34
72
0.794118
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,457
autoreload.pyj
kovidgoyal_calibre/src/pyj/autoreload.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals MAX_RETRIES = 10 class Watcher: def __init__(self, autoreload_port): host = document.location.host.split(':')[0] self.url = 'ws://' + host + ':' + ...
2,223
Python
.py
51
32.921569
152
0.600555
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,458
srv.pyj
kovidgoyal_calibre/src/pyj/srv.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> # globals: ρσ_get_module, self from __python__ import hash_literals import initialize # noqa: unused-import from ajax import ajax, console_print, set_default_timeout from autoreload import create_auto_reload_watcher from...
2,351
Python
.py
62
31.112903
86
0.66696
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,459
date.pyj
kovidgoyal_calibre/src/pyj/date.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals UNDEFINED_DATE_ISO = '0101-01-01T00:00:00+00:00' UNDEFINED_DATE = Date(UNDEFINED_DATE_ISO) def is_date_undefined(date): dy, uy = date.getUTCFullYear(), UNDEFINED_DATE.getUTCFullYe...
5,479
Python
.py
137
34.270073
136
0.597288
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,460
worker.pyj
kovidgoyal_calibre/src/pyj/worker.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2021, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from book_list.globals import main_js def worker_js_url(entry_point): if not worker_js_url.ans: worker_js_url.ans = window.URL.createObjectURL(Blob([main_j...
495
Python
.py
10
46
102
0.729167
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,461
complete.pyj
kovidgoyal_calibre/src/pyj/complete.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals, bound_methods from dom import ensure_id, unique_id, clear from elementmaker import E from session import local_storage from popups import CompletionPopup from utils import uniq class...
7,215
Python
.py
159
36.18239
124
0.645184
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,462
range_utils.pyj
kovidgoyal_calibre/src/pyj/range_utils.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net> # globals: NodeFilter, Range from __python__ import bound_methods, hash_literals def is_non_empty_text_node(node): return (node.nodeType is Node.TEXT_NODE or node.nodeType is Node.CDATA_SECTION_NODE) and node.nodeVal...
9,084
Python
.py
220
33.336364
159
0.666099
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,463
image_popup.pyj
kovidgoyal_calibre/src/pyj/image_popup.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2023, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from ajax import absolute_path from dom import add_extra_css, svgicon, unique_id from gettext import gettext as _ from popups import MODAL_Z_...
11,672
Python
.py
279
31.612903
198
0.586711
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,464
ajax.pyj
kovidgoyal_calibre/src/pyj/ajax.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from gettext import gettext as _ default_timeout = 60 def set_default_timeout(val): nonlocal default_timeout default_timeout = val def encode_query_component(x): ans ...
6,162
Python
.py
129
40.527132
180
0.643667
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,465
fs_images.pyj
kovidgoyal_calibre/src/pyj/fs_images.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals def is_svg_fs_markup(names, svg): if svg is not None: if names.length is 2 or names.length is 3: if names[-1] is 'image' and names[-2] is 'svg':...
1,677
Python
.py
38
33.526316
88
0.584455
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,466
modals.pyj
kovidgoyal_calibre/src/pyj/modals.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from elementmaker import E from gettext import gettext as _ from ajax import ajax, ajax_send from book_list.theme import get_color, get_font_size from dom import add_extra_css, build_...
16,223
Python
.py
349
38.045845
196
0.626628
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,467
viewer-main.pyj
kovidgoyal_calibre/src/pyj/viewer-main.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E import initialize # noqa: unused-import import traceback from ajax import absolute_path, ajax, workaround_qt_bug from book_list.globals impo...
17,791
Python
.py
436
34.392202
161
0.676162
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,468
popups.pyj
kovidgoyal_calibre/src/pyj/popups.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals, bound_methods from book_list.theme import get_color from dom import set_css, ensure_id, clear, build_rule, add_extra_css from elementmaker import E MODAL_Z_INDEX = 1000 POPUP_Z_INDEX...
7,639
Python
.py
192
31.416667
168
0.626888
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,469
testing.pyj
kovidgoyal_calibre/src/pyj/testing.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from dom import clear def raise_fail(preamble, msg, call_site): if msg: msg = '. ' + msg else: msg = '' if call_site?.module_name: m...
2,469
Python
.py
83
22.879518
87
0.570342
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,470
lru_cache.pyj
kovidgoyal_calibre/src/pyj/lru_cache.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals, bound_methods def lru_node(key, val): return {'key': key, 'val':val, 'prev':None, 'next':None} class LRUCache: def __init__(self, size): self.limit = 200 s...
1,880
Python
.py
60
22.3
72
0.549724
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,471
dom.pyj
kovidgoyal_calibre/src/pyj/dom.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals simple_vendor_prefixes = { 'animation': v"['webkit', 'moz', 'o']", 'animation-name': v"['webkit', 'moz', 'o']", 'animation-duration': v"['webkit', 'moz', 'o']", 'animat...
6,245
Python
.py
155
32.567742
138
0.569545
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,472
widgets.pyj
kovidgoyal_calibre/src/pyj/widgets.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from dom import build_rule, clear, svgicon, create_keyframes, set_css, change_icon_image, add_extra_css, ensure_id from elementmaker import E from book_list.theme import get_color # ...
9,756
Python
.py
209
37.492823
263
0.613225
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,473
qt.pyj
kovidgoyal_calibre/src/pyj/qt.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals special_title = '__SPECIAL_TITLE__' slots = {} def ping(suffix): document.title = special_title + suffix def signal(): args = Array.from(arguments) to_pyt...
1,628
Python
.py
44
29.727273
89
0.612883
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,474
test_date.pyj
kovidgoyal_calibre/src/pyj/test_date.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from date import format_date from testing import test, assert_equal def test_fd(date, fmt, ans): q = format_date(date, fmt, as_utc=True) assert_equal(ans, q) ...
1,019
Python
.py
19
50.105263
131
0.645582
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,475
file_uploads.pyj
kovidgoyal_calibre/src/pyj/file_uploads.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _ from dom import ensure_id from utils import human_readable, safe_set_inner_html def upload_files_widget(co...
2,426
Python
.py
55
38.272727
122
0.679253
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,476
select.pyj
kovidgoyal_calibre/src/pyj/select.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals if document?.caretPositionFromPoint: caret_position_from_point = document.caretPositionFromPoint.bind(document) else: caret_position_from_point = def(x, y): ...
10,984
Python
.py
216
41.587963
1,298
0.647639
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,477
test_annotations.pyj
kovidgoyal_calibre/src/pyj/test_annotations.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from read_book.annotations import merge_annot_lists from testing import assert_equal, test, assert_true def bm(title, bmid, year=20, first_cfi_number=1): return { ...
1,190
Python
.py
26
39.807692
89
0.600866
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,478
utils.pyj
kovidgoyal_calibre/src/pyj/utils.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from ajax import encode_query from encodings import hexlify from book_list.theme import get_font_family is_ios = v'!!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform)...
7,753
Python
.py
200
32.535
184
0.633409
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,479
iframe_comm.pyj
kovidgoyal_calibre/src/pyj/iframe_comm.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from aes import GCM from elementmaker import E import traceback from book_list.globals import get_translations, main_js from book_list.theme import get_font_family from...
9,084
Python
.py
221
31.809955
135
0.615855
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,480
prefs.pyj
kovidgoyal_calibre/src/pyj/book_list/prefs.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from dom import clear, ensure_id from elementmaker import E from widgets import create_button from gettext import gettext as _ from book_list.globals import get_session_data from book...
7,670
Python
.py
203
29.339901
132
0.619272
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,481
search.pyj
kovidgoyal_calibre/src/pyj/book_list/search.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from ajax import ajax, absolute_path from complete import create_search_bar from dom import clear, set_css, build_rule, svgicon, add_extra_css, ensure_id from elementmaker import E fro...
23,190
Python
.py
466
40.643777
396
0.623895
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,482
comments_editor.pyj
kovidgoyal_calibre/src/pyj/book_list/comments_editor.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from book_list.theme import color_scheme, get_color, get_color_as_rgba from dom import add_extra_css, build_rule, clear, ensure_id, svgicon f...
27,377
Python
.py
602
32.868771
191
0.543758
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,483
item_list.pyj
kovidgoyal_calibre/src/pyj/book_list/item_list.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from dom import build_rule, svgicon, add_extra_css, clear from elementmaker import E from book_list.theme import get_font_size, get_color CLASS_NAME = 'generic-items-list' add_extra...
3,323
Python
.py
73
37.136986
204
0.617929
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,484
theme.pyj
kovidgoyal_calibre/src/pyj/book_list/theme.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals, bound_methods DARK = '#39322B' LIGHT = '#F6F3E9' LIGHT_DARKER = '#b6b3a8' LIGHT_GRADIENT = 'linear-gradient(to bottom, {}, {})'.format(LIGHT, LIGHT_DARKER) DT_DARK = '#2d2d2d' DT_DARK...
4,353
Python
.py
115
33.104348
112
0.653672
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,485
delete_book.pyj
kovidgoyal_calibre/src/pyj/book_list/delete_book.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _ from ajax import ajax from book_list.add import write_access_error from book_list.library_data import book_a...
3,992
Python
.py
91
35.351648
120
0.622646
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,486
main.pyj
kovidgoyal_calibre/src/pyj/book_list/main.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals, bound_methods import traceback from elementmaker import E from ajax import ajax from dom import set_css, get_widget_css from modals import create_modal_container, error_dialog from se...
6,610
Python
.py
142
40.669014
140
0.700016
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,487
details_list.pyj
kovidgoyal_calibre/src/pyj/book_list/details_list.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _ from book_list.theme import browser_in_dark_mode, css_for_variables, get_color from dom import build_rule, c...
5,090
Python
.py
103
43.203883
147
0.65674
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,488
constants.pyj
kovidgoyal_calibre/src/pyj/book_list/constants.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals, bound_methods book_list_container_id = 'book-list-container' read_book_container_id = 'read-book-container' INIT_ENDPOINT = 'interface-data/init'
284
Python
.py
6
46
72
0.778986
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,489
local_books.pyj
kovidgoyal_calibre/src/pyj/book_list/local_books.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _, ngettext from book_list.globals import get_db from book_list.router import home, open_book from book_list.t...
7,587
Python
.py
193
31.823834
129
0.63994
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,490
cover_grid.pyj
kovidgoyal_calibre/src/pyj/book_list/cover_grid.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals, bound_methods from dom import clear, set_css, build_rule from elementmaker import E from gettext import gettext as _ COVER_GRID_CLASS = 'book-list-cover-grid' THUMBNAIL_MAX_WIDTH = ...
3,443
Python
.py
65
47.615385
143
0.670036
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,491
conversion_widgets.pyj
kovidgoyal_calibre/src/pyj/book_list/conversion_widgets.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _ from dom import add_extra_css, build_rule, clear, ensure_id from utils import safe_set_inner_html from widge...
33,994
Python
.py
688
43.478198
169
0.65246
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,492
library_data.pyj
kovidgoyal_calibre/src/pyj/book_list/library_data.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from gettext import gettext as _ from ajax import absolute_path, ajax from book_list.globals import get_session_data from lru_cache import LRUCache from session import ...
10,003
Python
.py
246
33.898374
210
0.650872
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,493
router.pyj
kovidgoyal_calibre/src/pyj/book_list/router.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from ajax import absolute_path, encode_query from elementmaker import E from gettext import gettext as _ from book_list.constants import book_list_container_id, read_bo...
4,751
Python
.py
114
36.280702
151
0.678758
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,494
add.pyj
kovidgoyal_calibre/src/pyj/book_list/add.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _ from ajax import ajax_send_file from book_list.library_data import force_refresh_on_next_load, loaded_books_...
6,117
Python
.py
152
34.171053
128
0.65487
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,495
fts.pyj
kovidgoyal_calibre/src/pyj/book_list/fts.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2022, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from ajax import ajax, ajax_send from book_list.cover_grid import THUMBNAIL_MAX_HEIGHT, THUMBNAIL_MAX_WIDTH from book_list.globals import get...
20,370
Python
.py
439
39.047836
230
0.639089
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,496
home.pyj
kovidgoyal_calibre/src/pyj/book_list/home.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from ajax import absolute_path, ajax_send, ajax from book_list.cover_grid import BORDER_RADIUS from book_list.globals import get_db from book...
13,554
Python
.py
301
36.046512
153
0.617781
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,497
views.pyj
kovidgoyal_calibre/src/pyj/book_list/views.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals import traceback from elementmaker import E from gettext import gettext as _ from ajax import ajax_send from book_list.add import add_books_panel from book_list.cover_grid import ( ...
19,416
Python
.py
426
39.096244
184
0.6688
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,498
custom_list.pyj
kovidgoyal_calibre/src/pyj/book_list/custom_list.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> # globals: NodeFilter from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _ from book_list.details_list import sandbox_css, BORDER_RADIUS from book_list.library_d...
11,259
Python
.py
289
30.245675
113
0.587611
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)
26,499
convert_book.pyj
kovidgoyal_calibre/src/pyj/book_list/convert_book.pyj
# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import bound_methods, hash_literals from elementmaker import E from gettext import gettext as _ from ajax import ajax, ajax_send from book_list.book_details import report_load_failure from book_list.conve...
16,754
Python
.py
399
34.092732
167
0.651527
kovidgoyal/calibre
19,243
2,250
4
GPL-3.0
9/5/2024, 5:13:50 PM (Europe/Amsterdam)