MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 7 callersMethod_applyTransform
(pos)
openlibrary/components/lit/OlCarousel.js:464
↓ 7 callersMethod_get_wikipedia_link
Get the Wikipedia URL and language for a given language code. Falls back to English if requested language is unavailable.
openlibrary/core/wikidata.py:146
↓ 7 callersMethod_process_dict
(self, data)
openlibrary/mocks/mock_infobase.py:193
↓ 7 callersFunction_proxy
Create a new function that call method with given name on the database object. The new function also takes care of recording the stats about
openlibrary/core/db.py:160
↓ 7 callersFunction_save_testing_state
(state: TestingState)
openlibrary/plugins/openlibrary/status.py:385
↓ 7 callersMethodadd
(self, doc)
openlibrary/tests/core/test_processors.py:18
↓ 7 callersFunctionauthenticate_user_from_cookie
Authenticate a user from a session cookie. Args: cookie_value: The raw cookie value (URL-encoded), or None Returns: Authenti
openlibrary/fastapi/auth.py:53
↓ 7 callersFunctioncaching_prethread
()
openlibrary/plugins/openlibrary/home.py:87
↓ 7 callersFunctioncollectConsoleErrors
(page: Page)
tests/e2e/helpers.ts:22
↓ 7 callersMethoddict
(self)
openlibrary/tests/fastapi/test_account_loans.py:21
↓ 7 callersMethodencode_args
Encodes arguments to construct the memcache key.
openlibrary/core/cache.py:169
↓ 7 callersMethodescape
r"""Escape special characters in the query string >>> Solr.escape("a[b]c") 'a\\[b\\]c'
openlibrary/utils/solr.py:59
↓ 7 callersMethodexists
(self, key)
openlibrary/plugins/openlibrary/connection.py:464
↓ 7 callersFunctionflip_name
Flip author name about the comma, stripping the comma, and removing non abbreviated end dots. Returns name with end dot stripped if no comma+
openlibrary/catalog/utils/__init__.py:75
↓ 7 callersMethodfunc
The memoized function. If this is the first call with these arguments, function :attr:`f` is called and the return value is cached.
openlibrary/core/cache.py:466
↓ 7 callersMethodget
(self, key)
openlibrary/tests/core/test_cache.py:100
↓ 7 callersFunctiongetFocusableFromSlot
(slot)
openlibrary/components/lit/utils/focus-utils.js:64
↓ 7 callersMethodgetRootElement
* Returns a reference to this check-in form. * * @returns {HTMLFormElement}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:793
↓ 7 callersMethodget_contents
(self, want: str)
openlibrary/catalog/marc/marc_base.py:42
↓ 7 callersFunctionget_coverstore_public_url
()
openlibrary/plugins/upstream/utils.py:392
↓ 7 callersFunctionget_secret_key
()
openlibrary/accounts/model.py:85
↓ 7 callersFunctionget_user_experiments
Evaluates all active experiments for a user, handling optional overrides.
openlibrary/core/experiments.py:52
↓ 7 callersFunctiongetdb
()
openlibrary/coverstore/db.py:11
↓ 7 callersFunctionis_published_in_future_year
Prevent import of books with a publication after the current year. Some import sources have publication dates in a future year, and the like
scripts/partner_batch_imports.py:362
↓ 7 callersMethodlogin
( self, username="", connect=None, password="", remember=False,
openlibrary/plugins/upstream/account.py:678
↓ 7 callersMethodmain
(self, test=False)
openlibrary/plugins/admin/code.py:271
↓ 7 callersFunctionmake_date_string
Creates a date string in the expected format, given the year, month, and day. Event dates can take one of three forms: "YYYY" "YYYY-MM"
openlibrary/plugins/upstream/checkins.py:15
↓ 7 callersFunctionmap_publication_to_olbook
Convert an OPDS publication to an OL import record. Returns None when the publication lacks ISBN-13, title, or authors — matching the spec sk
scripts/bwb_opds_imports.py:144
↓ 7 callersMethodmd5
Returns md5 checksum of the combined documents
openlibrary/plugins/upstream/code.py:180
↓ 7 callersFunctionmock_doc_factory
Factory fixture to create and mock documents. Usage: doc = mock_doc_factory(type_key="/type/list")
openlibrary/tests/fastapi/test_lists_delete.py:51
↓ 7 callersFunctionmock_user_factory
Factory fixture to create and mock users with configurable roles. Usage: user = mock_user_factory(is_admin=True) user = mock_user
openlibrary/tests/fastapi/test_importapi.py:36
↓ 7 callersFunctionpostProcessMarkdown
* Apply the same post-processing that OLMarkdownEditor.onUpdate does: * normalize 2-space list indentation to 4-space.
tests/unit/js/OLMarkdownEditor.test.js:58
↓ 7 callersFunctionrenderError
* Renders an error message for a given input in a given error div. * * @param {string} inputId The ID (incl #) of the input the error relate
openlibrary/plugins/openlibrary/js/signup.js:54
↓ 7 callersMethodreset
(self)
openlibrary/mocks/mock_infobase.py:30
↓ 7 callersMethodsave
(self, sitename, path, data)
openlibrary/plugins/openlibrary/connection.py:84
↓ 7 callersFunctionsearchModalStringsFromElement
(el)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:117
↓ 7 callersFunctionsolr_update
( update_request: SolrUpdateRequest, skip_id_check=False, solr_base_url: str | None = None, )
openlibrary/solr/utils.py:120
↓ 7 callersFunctiontitle_from_list
(title_parts: list[str], delim: str = " ")
openlibrary/catalog/marc/parse.py:245
↓ 7 callersMethodupdate_loan_status
Update the status of this user's loans.
openlibrary/plugins/upstream/models.py:769
↓ 7 callersMethodversions
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:226
↓ 7 callersFunctionwas_shutdown_requested
Checks whether a shutdown has been requested via a captured system signal. Returns: bool: True if a SIGINT or SIGTERM has been recei
scripts/utils/graceful_shutdown.py:21
↓ 6 callersMethodGET
(self)
openlibrary/plugins/worksearch/code.py:729
↓ 6 callersFunction_build_librarian_app
Create a minimal FastAPI app with one route protected by require_librarian.
openlibrary/tests/fastapi/test_auth.py:120
↓ 6 callersFunction_get_readable_count
Count of the current search's results that are readable in-browser, for the "Readable Only" toggle sublabel on work_search.html. Mirrors the '
openlibrary/plugins/worksearch/code.py:181
↓ 6 callersMethod_get_statement_values
Get all values for a given property statement (e.g., P2038). Returns an empty list if the property doesn't exist.
openlibrary/core/wikidata.py:160
↓ 6 callersFunction_make_creators_item
Fully-populated Creators API item fixture modelling a real book (The Sea Around Us by Rachel Carson, ISBN-10 0190906766).
openlibrary/tests/core/test_vendors.py:648
↓ 6 callersMethod_monkeypatch_web
(self, monkeypatch)
openlibrary/tests/core/test_processors_invalidation.py:162
↓ 6 callersFunction_parse_iso
Parse an ISO 8601 timestamp, normalising to a tz-aware UTC datetime. BWB emits high-precision offsets like ``2026-05-19T14:47:58.5476301-04:00``
scripts/bwb_opds_imports.py:97
↓ 6 callersMethod_shouldAutocomplete
()
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1657
↓ 6 callersMethodadd_index
(self, table, columns, **options)
openlibrary/utils/schema.py:250
↓ 6 callersMethodclose
(self)
openlibrary/coverstore/archive.py:460
↓ 6 callersMethodcompress
(self, text)
openlibrary/utils/compress.py:49
↓ 6 callersFunctioncopy
:param src: where we'll be copying form :param dest: where we'll be saving to :param comment: comment to writing when saving the document
scripts/copydocs.py:159
↓ 6 callersMethoddecompress
(self, ctext)
openlibrary/utils/compress.py:57
↓ 6 callersMethoddecorate_with_tags
(self, subject)
openlibrary/plugins/worksearch/subjects.py:63
↓ 6 callersFunctiondoubleRoundTrip
(input)
tests/unit/js/OLMarkdownEditor.test.js:646
↓ 6 callersFunctionfetchWithRetry
(input, init = {}, maxRetries = 5, initialDelay = 2000)
openlibrary/components/MergeUI/utils.js:14
↓ 6 callersMethodfindIndex
* Finds the correct index to insert the given menu option, such that * the array is alphabetically ordered (case-insensitive). * * @par
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:74
↓ 6 callersMethodfrom_json
( list: List, seed_json: SeedSubjectString | ThingReferenceDict | AnnotatedSeedDict, )
openlibrary/core/lists/model.py:428
↓ 6 callersFunctionfully_escape_query
Try to convert a query to basically a plain lucene string. >>> fully_escape_query('title:foo') 'title\\\\:foo' >>> fully_escape_quer
openlibrary/solr/query_utils.py:114
↓ 6 callersMethodgenerate_async
(cls, params: CarouselLoadMoreParams)
openlibrary/plugins/openlibrary/partials.py:117
↓ 6 callersFunctionget
(keys)
openlibrary/data/db.py:109
↓ 6 callersMethodgetEventId
* Returns the value of this form's `event_id` input. * * @returns {string}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:748
↓ 6 callersFunctiongetJqueryElements
* This is needed because jQuery has no forEach equivalent that works with jQuery elements instead of DOM elements * @param selector - css selector us
openlibrary/plugins/openlibrary/js/edit.js:66
↓ 6 callersMethodget_account
(self)
openlibrary/core/models.py:916
↓ 6 callersFunctionget_amazon_metadata
Main interface to Amazon LookupItem API. Will cache results. :param str id_: The item id: isbn (10/13), or Amazon ASIN. :param str id_type: '
openlibrary/core/vendors.py:588
↓ 6 callersMethodget_avatar_url
(cls, username: str)
openlibrary/core/models.py:1017
↓ 6 callersMethodget_change
(self, cid: int)
openlibrary/mocks/mock_infobase.py:149
↓ 6 callersMethodget_cover
Returns a cover object.
openlibrary/core/lists/model.py:108
↓ 6 callersMethodget_cover
(self, use_solr=True)
openlibrary/plugins/upstream/models.py:517
↓ 6 callersFunctionget_days_registered
Return a Matomo custom dimension value for patron account age. Buckets for visit-scoped dimension 1 ("Days Since Registration"): visitor —
openlibrary/accounts/__init__.py:77
↓ 6 callersMethodget_ia_meta_fields
(self)
openlibrary/plugins/upstream/models.py:136
↓ 6 callersFunctionget_languages
(limit: int = 1000)
openlibrary/plugins/upstream/utils.py:681
↓ 6 callersMethodget_memcache
(self, memcache_servers)
openlibrary/plugins/openlibrary/connection.py:285
↓ 6 callersMethodget_metadata
(self, itemid)
openlibrary/mocks/mock_ia.py:26
↓ 6 callersFunctionget_recaptcha
()
openlibrary/plugins/upstream/addbook.py:37
↓ 6 callersMethodget_safe_mode
(self)
openlibrary/plugins/upstream/models.py:775
↓ 6 callersFunctionget_solr_base_url
Get Solr host :rtype: str
openlibrary/solr/utils.py:30
↓ 6 callersMethodget_subjects
Return subject strings.
openlibrary/plugins/upstream/models.py:539
↓ 6 callersFunctionget_thing_id
(key)
openlibrary/plugins/ol_infobase.py:130
↓ 6 callersMethodget_users_read_status_of_work
A user can mark a book as (1) want to read, (2) currently reading, (3) already read, or (4) stopped reading. Each of these states is mutually
openlibrary/core/bookshelves.py:594
↓ 6 callersFunctionget_value
(doc, property)
scripts/pull-templates.py:72
↓ 6 callersFunctioninit_sentry
(config_dict: dict)
openlibrary/utils/sentry.py:246
↓ 6 callersFunctionis_bot
Check if the current request is from a bot.
openlibrary/plugins/openlibrary/code.py:1077
↓ 6 callersMethodis_member_of_any
Returns True if `User` is a member of any of the given usergroups.
openlibrary/core/models.py:948
↓ 6 callersFunctionload_translations
(lang)
openlibrary/i18n/__init__.py:322
↓ 6 callersFunctionmake_author
Create a fake author :param kw: author data :rtype: dict
openlibrary/tests/solr/test_update.py:21
↓ 6 callersFunctionmock_web_input_func
(data)
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:34
↓ 6 callersFunctionname_from_list
(name_parts: list[str], strip_trailing_dot: bool = True)
openlibrary/catalog/marc/parse.py:448
↓ 6 callersMethodnextday
(self, today)
openlibrary/plugins/ol_infobase.py:221
↓ 6 callersFunctionnormalize_ddc
(ddc: str)
openlibrary/utils/ddc.py:49
↓ 6 callersFunctionnormalize_lccn
(lccn)
openlibrary/utils/lccn.py:10
↓ 6 callersFunctionnormalize_subject_name
Normalize a subject/tag name to a URL-safe lowercase slug. Spaces become underscores; characters in _SUBJECT_CHARS_TO_DROP are removed. This
openlibrary/utils/__init__.py:13
↓ 6 callersFunctionpy2js
Converts a python expression to javascript.:: >>> py2js("x + y") 'x + y' >>> py2js("x and y") 'x && y' >>> py2js("x or not y")
openlibrary/plugins/upstream/jsdef.py:222
↓ 6 callersMethodquery
(cls, **kw)
openlibrary/core/waitinglist.py:102
↓ 6 callersFunctionremoveChildren
(...elements)
openlibrary/plugins/openlibrary/js/utils.js:37
↓ 6 callersMethodrun
(self, lines)
openlibrary/core/olmarkdown.py:101
↓ 6 callersMethodsave_many
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:87
↓ 6 callersMethodseed_to_key
Converts seed to key. >>> invalidater = MemcacheInvalidater() >>> invalidater.seed_to_key({"key": "/books/OL1M"}) '/books/OL1
openlibrary/olbase/events.py:109
↓ 6 callersMethodsetup_call
(self, *a, **kw)
openlibrary/plugins/books/tests/test_dynlinks.py:207
← previousnext →301–400 of 6,179, ranked by callers