MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 707 callersMethodget
Returns the value for given key. Returns None if that key is not present in the cache.
openlibrary/core/cache.py:242
↓ 663 callersMethodget
(self, item)
openlibrary/plugins/upstream/utils.py:533
↓ 510 callersFunctionlen
(array)
openlibrary/plugins/openlibrary/js/jsdef.js:54
↓ 302 callersMethodget
:param str key: :param int or None revision: :return: dict or None
scripts/tests/test_copydocs.py:32
↓ 261 callersMethodget
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:129
↓ 204 callersMethoddumps
(self, data)
openlibrary/plugins/openlibrary/lists.py:663
↓ 204 callersMethodget
(self, key)
openlibrary/tests/core/test_models.py:96
↓ 194 callersMethodjson
(self)
openlibrary/tests/core/test_vendors.py:264
↓ 140 callersMethodfind
Returns a list of keys for Tags whose slugs contain the normalized tag_name.
openlibrary/core/models.py:1256
↓ 132 callersMethodget
(cls, email, test=False, _json=False, s3_key=None, s3_secret=None, xauth_url=None)
openlibrary/accounts/model.py:899
↓ 120 callersFunctionset
(isbnData)
openlibrary/plugins/openlibrary/js/isbnOverride.js:12
↓ 113 callersMethodloads
(self, text)
openlibrary/plugins/openlibrary/lists.py:666
↓ 101 callersMethodpost
(self, *a, **kw)
openlibrary/tests/solr/updater/test_author.py:27
↓ 100 callersMethodinfo
(self, fetch_author: bool = True)
openlibrary/core/models.py:70
↓ 95 callersFunctionnormalize
* Normalize whitespace for comparison: trim lines, collapse blank lines, * strip trailing whitespace. We care about *semantic* equivalence, not * ex
tests/unit/js/OLMarkdownEditor.test.js:86
↓ 88 callersMethoditems
(self, **kw)
openlibrary/mocks/mock_infobase.py:393
↓ 88 callersFunctionroundTrip
* Full round-trip: markdown → editor → markdown (with post-processing).
tests/unit/js/OLMarkdownEditor.test.js:72
↓ 87 callersMethodread
* Read the stored value * @return {String}
openlibrary/plugins/openlibrary/js/SearchUtils.js:31
↓ 85 callersMethodquery
(self, **params)
openlibrary/core/lending.py:1016
↓ 85 callersMethodremove
* Removes this MenuOption from the DOM.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:123
↓ 84 callersMethodcontains
(cls, zip_file_path, filename)
openlibrary/coverstore/archive.py:466
↓ 84 callersMethodpush
* @param {{key: string, render_fn_name: string}} arg0
openlibrary/plugins/openlibrary/js/lazy-thing-preview.js:42
↓ 81 callersFunctionrender_template
(name, *a, **kw)
openlibrary/plugins/admin/code.py:45
↓ 80 callersFunctionrange
(begin, end, step)
openlibrary/plugins/openlibrary/js/jsdef.js:24
↓ 75 callersMethodsave
(self)
openlibrary/core/lending.py:900
↓ 73 callersMethodquery
(self, category: str, key: str, value: str)
openlibrary/coverstore/code.py:375
↓ 72 callersMethodadd
* Attaches the given menu options to this container, in order. * * @param {...MenuOption} menuOptions Menu options to be added to the conta
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:31
↓ 71 callersMethodnow
(self)
openlibrary/tests/core/test_processors_invalidation.py:26
↓ 65 callersMethodupdate
(self, **kwargs)
openlibrary/core/lending.py:795
↓ 64 callersMethodparse
Parse the string and return storage object with specified fields and units.
openlibrary/plugins/upstream/models.py:798
↓ 63 callersMethodget
(self, key, v=None)
openlibrary/api.py:121
↓ 61 callersMethodnotfound
()
openlibrary/coverstore/code.py:249
↓ 58 callersMethoddict
(self)
openlibrary/core/lists/model.py:587
↓ 58 callersMethoditems
(self)
openlibrary/plugins/upstream/utils.py:149
↓ 58 callersMethodvalues
(self, **kw)
openlibrary/mocks/mock_infobase.py:390
↓ 57 callersMethodget
(self, key)
openlibrary/plugins/upstream/tests/test_merge_authors.py:37
↓ 54 callersMethodfocus
@override
openlibrary/components/lit/utils/focusable-host-mixin.js:67
↓ 54 callersFunctionload
Given a record, tries to add/match that edition in the system. Record is a dictionary containing all the metadata of the edition. The followi
openlibrary/catalog/add_book/__init__.py:999
↓ 47 callersMethodget
(self, key)
openlibrary/utils/olmemcache.py:20
↓ 47 callersFunctionrender_template
(name: str, *a, **kw)
openlibrary/plugins/upstream/utils.py:167
↓ 45 callersFunctionfetch
(uris: list[str])
scripts/copydocs.py:195
↓ 44 callersFunctionfn
(query: str, remove: str)
openlibrary/tests/solr/test_query_utils.py:24
↓ 40 callersMethodadd
Adds a new entry in the cache. Nothing is done if there is already an entry with the same key. Returns True if a new entry is added to the ca
openlibrary/core/cache.py:253
↓ 40 callersFunctionf
(tokens)
openlibrary/plugins/upstream/jsdef.py:234
↓ 39 callersMethodget_subfield_values
(self, want: str)
openlibrary/catalog/marc/marc_base.py:35
↓ 39 callersFunctionuniq
Returns the unique entries from the given values in the original order. The value of the optional `key` parameter should be a function that takes
openlibrary/utils/__init__.py:22
↓ 38 callersMethodset
Sets a value in the cache. If expires is non-zero, the cache may delete that entry from the cache after expiry. The implementation can
openlibrary/core/cache.py:246
↓ 37 callersFunctionenumerate
(a)
openlibrary/plugins/openlibrary/js/jsdef.js:59
↓ 36 callersMethoddate
I think this is legacy?
openlibrary/solr/updater/author.py:92
↓ 36 callersMethodsearch
Adding method to test amz searches from the CLI, unused otherwise
openlibrary/core/vendors.py:122
↓ 36 callersMethodthings
(self, query)
openlibrary/mocks/mock_infobase.py:202
↓ 35 callersMethoderror
(code__msg)
openlibrary/coverstore/code.py:135
↓ 35 callersFunctionmake_edition
Create a fake edition :param dict work: Work dict which this is an edition of :param kw: edition data :rtype: dict
openlibrary/tests/solr/test_update.py:36
↓ 33 callersMethodraise_for_status
(self)
openlibrary/tests/core/test_vendors.py:261
↓ 32 callersFunctionmake_work_solr_builder
( work: dict | None = None, editions: list[dict] | None = None, authors: list[dict] | None = None,
openlibrary/tests/solr/updater/test_work.py:71
↓ 31 callersFunctioncheck_html
Check HTML content for missing i18n strings. :param html: Raw HTML content to check. :return: A list of (errtype, line_number, char_posi
scripts/detect_missing_i18n.py:106
↓ 31 callersMethodwrite
(path, text)
scripts/copydocs.py:62
↓ 30 callersMethodget_fields
(self, tag: str)
openlibrary/catalog/marc/marc_base.py:82
↓ 30 callersMethodupdate
(self)
openlibrary/plugins/upstream/code.py:164
↓ 29 callersMethod_renderButton
({ title, icon, action, isActive = false, isDisabled = false, customColor = null })
openlibrary/components/lit/OLMarkdownEditor.js:604
↓ 29 callersMethodclear
(self)
openlibrary/core/cache.py:290
↓ 29 callersMethodcopy
(self)
openlibrary/utils/form.py:22
↓ 29 callersMethodexists
Returns True if a request with the given URL exists in the table.
openlibrary/core/edits.py:297
↓ 29 callersMethodget_user
(self)
openlibrary/plugins/upstream/models.py:850
↓ 29 callersMethodupdate
:param str or int or None seen: :param str or int or None total: :param str or float or None percent:
scripts/solr_builder/solr_builder/solr_builder.py:463
↓ 28 callersMethoderror
(self, error_code, error="Invalid item", **kwargs)
openlibrary/plugins/importapi/code.py:163
↓ 28 callersFunctionextract_numeric_id_from_olid
>>> extract_numeric_id_from_olid("OL123W") '123' >>> extract_numeric_id_from_olid("/authors/OL123A") '123'
openlibrary/utils/__init__.py:159
↓ 28 callersFunctionf
(key)
openlibrary/tests/core/test_processors.py:70
↓ 27 callersMethodhtml
(self)
openlibrary/catalog/marc/html.py:26
↓ 27 callersMethodjson
Return a JSON representation of the object.
scripts/providers/isbndb.py:130
↓ 26 callersFunctionmake_work
Create a fake work :param kw: :rtype: dict
openlibrary/tests/solr/test_update.py:54
↓ 25 callersMethodclose
(self)
scripts/bwb_opds_imports.py:338
↓ 25 callersFunctionget_current_user
Returns the currently logged in user. None if not logged in.
openlibrary/accounts/__init__.py:69
↓ 25 callersMethodhide
* Hides this menu option. * * Fires an `option-hidden` event when this is called.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:168
↓ 25 callersFunctionmatchSubstring
(array, substring)
openlibrary/plugins/openlibrary/js/team.js:33
↓ 25 callersFunctionsafeint
Convert the value to integer. Returns default, if the conversion fails.
openlibrary/plugins/ol_infobase.py:482
↓ 25 callersMethodsave
(self, book, coverid, url=None)
openlibrary/plugins/upstream/covers.py:130
↓ 24 callersMethodnew
Creates a new loan object. The caller is expected to call save method to save the loan.
openlibrary/core/lending.py:811
↓ 24 callersMethodvalues
(self)
openlibrary/plugins/upstream/utils.py:146
↓ 23 callersFunctionall
Returns true for all requests
openlibrary/plugins/openlibrary/filters.py:15
↓ 23 callersMethodcolumn
(self, name, type, **options)
openlibrary/utils/schema.py:243
↓ 23 callersMethodfn
Do some magic! :param works: These are works :param solr_url: This is solr url
scripts/solr_builder/tests/test_fn_to_cli.py:10
↓ 23 callersFunctionget_db
Returns an instance of webpy database object. The database object is cached so that one object is used everywhere.
openlibrary/core/db.py:21
↓ 23 callersFunctionregister_admin_page
(path, cls, label=None, visible=True, librarians=False)
openlibrary/plugins/admin/code.py:54
↓ 23 callersMethodrun
Read lines from STDIN and print any associated revealed IPs.
scripts/obfi/reveal.py:30
↓ 22 callersFunction_u
(url)
tests/unit/js/service-worker-matchers.test.js:5
↓ 22 callersMethodcontains
* Checks if the given menu option is in this container. * * @param {MenuOption} menuOption The object that we are searching for * @retu
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:102
↓ 22 callersMethoddelete
Deletes an entry from the cache. No error is raised if there is no entry in present in the cache with that key. Returns True if the key is de
openlibrary/core/cache.py:260
↓ 22 callersFunctionupdate_edition
(rec: MarcBase, edition: dict[str, Any], func: Callable, field: str)
openlibrary/catalog/marc/parse.py:664
↓ 21 callersFunctionread_edition
Converts MARC record object into a dict representation of an edition suitable for importing into Open Library. :param (MarcBinary | Marc
openlibrary/catalog/marc/parse.py:672
↓ 21 callersMethodshow
Displays the toast component on the page.
openlibrary/plugins/openlibrary/js/Toast.js:29
↓ 21 callersMethodwrite
* Update the stored value * @param {String} newValue
openlibrary/plugins/openlibrary/js/SearchUtils.js:39
↓ 20 callersMethod_save
Saves this account in store.
openlibrary/accounts/model.py:362
↓ 20 callersMethodadd
(self, name, value, attrs=None)
openlibrary/plugins/openlibrary/opds.py:60
↓ 20 callersFunctionbash_run
(cmd: str, sources: list[str | Path] | None = None, capture_output=False)
scripts/monitoring/utils.py:47
↓ 20 callersFunctionerror
(errordiv, input, message)
openlibrary/plugins/openlibrary/js/edit.js:26
↓ 20 callersFunctionmake_test_site
Create a mock site with a doc, thing query results, and get_many entries.
openlibrary/tests/fastapi/test_work_editions_author_works.py:11
↓ 20 callersMethodremove
(cls, username, work_id)
openlibrary/core/ratings.py:154
↓ 20 callersMethodurl
(self)
openlibrary/plugins/upstream/code.py:215
↓ 19 callersMethodget_many
(self, keys)
openlibrary/mocks/mock_infobase.py:199
next →1–100 of 6,179, ranked by callers