MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 3 callersFunctionwork_search_async
( query: dict, sort: str | None = None, page: int | None = 1, offset: int | None = 0, limi
openlibrary/plugins/worksearch/code.py:1200
↓ 2 callersMethodGET
(self, key)
openlibrary/plugins/upstream/addbook.py:795
↓ 2 callersFunctionOLCompressor
Create a compressor object for compressing OL data.
openlibrary/utils/olcompress.py:18
↓ 2 callersMethodPOST
(self, category)
openlibrary/coverstore/code.py:479
↓ 2 callersMethodPOST
Internal private API required for testing on localhost
openlibrary/plugins/upstream/account.py:109
↓ 2 callersMethodPOST
Called when the user wants to borrow the edition
openlibrary/plugins/upstream/borrow.py:109
↓ 2 callersFunctionTemplate
(tmpl_text)
openlibrary/plugins/openlibrary/js/template.js:5
↓ 2 callersMethod__init__
(self)
openlibrary/solr/data_provider.py:104
↓ 2 callersMethod_afterAnimation
* Runs `done` once the dialog's current open/close animation finishes. * * The open/close transitions are CSS animations, so the obvious hoo
openlibrary/components/lit/OlDialog.js:486
↓ 2 callersMethod_animateSpring
(fromPos, initialVelocity, targetPos, onComplete)
openlibrary/components/lit/OlCarousel.js:416
↓ 2 callersMethod_attachDialogListeners
()
openlibrary/components/lit/OlDialog.js:715
↓ 2 callersMethod_baseSearchParams
(query)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1729
↓ 2 callersFunction_build_preview_response
( source: str | None, provider: str | None, identifier: str | None, save: bool, client_ip:
openlibrary/fastapi/importapi.py:18
↓ 2 callersMethod_catformat
(self, category: str)
scripts/providers/import_wikisource.py:110
↓ 2 callersFunction_cfmt_fingerprint
Get a fingerprint dict of the cstyle format in this string >>> _cfmt_fingerprint('hello %s') {'%s': 1} >>> _cfmt_fingerprint('hello %
openlibrary/i18n/validators.py:31
↓ 2 callersFunction_clean_default
Normalize a manifest default for display. The analyzer emits the literal strings "null"/"undefined" for fields left unset in the constructor; show
openlibrary/plugins/openlibrary/design.py:16
↓ 2 callersMethod_clearDragStyles
()
openlibrary/components/lit/OlPopover.js:805
↓ 2 callersMethod_closeModal
()
openlibrary/components/lit/OpenLibraryOTP.js:413
↓ 2 callersMethod_commitSelection
* Commit a choice: select it (if not already) and close. Mirrors native * <select> / dropdown-filter conventions where activating an option both
openlibrary/components/lit/OlOptionsPopover.js:407
↓ 2 callersMethod_computePosition
* Compute the final position of the popover panel, flipping and shifting * as needed to keep it within the viewport.
openlibrary/components/lit/OlPopover.js:506
↓ 2 callersMethod_compute_fields
(self)
openlibrary/plugins/openlibrary/stats.py:191
↓ 2 callersFunction_compute_is_bot
Determine if the request is from a bot. ``is_bot`` (broader) vs ``is_recognized_bot`` (narrower): - ``is_recognized_bot``: UA matched against
openlibrary/utils/request_context.py:117
↓ 2 callersFunction_compute_is_recognized_bot
(user_agent: str)
openlibrary/utils/request_context.py:112
↓ 2 callersMethod_countItems
()
openlibrary/components/lit/OlCarousel.js:473
↓ 2 callersFunction_default_search_response
Default mock response shared by both sync and async mocks.
openlibrary/tests/fastapi/conftest.py:135
↓ 2 callersFunction_default_subjects_response
Default mock response for subjects search.
openlibrary/tests/fastapi/conftest.py:151
↓ 2 callersMethod_detachBlurOnScroll
()
openlibrary/components/lit/OlDialog.js:708
↓ 2 callersMethod_emitChange
(nextSelected, added, removed)
openlibrary/components/lit/OlSelectPopover.js:696
↓ 2 callersMethod_emitPageChange
()
openlibrary/components/lit/OlCarousel.js:583
↓ 2 callersFunction_encode_key_part
(key_part: str)
openlibrary/plugins/openlibrary/stats.py:140
↓ 2 callersMethod_ensure_no_store_entry
(self, sitename, identifier)
openlibrary/plugins/openlibrary/connection.py:194
↓ 2 callersFunction_fill_data
Add `data` to all docs by querying memcache/database.
openlibrary/data/db.py:106
↓ 2 callersMethod_focusableRows
()
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1571
↓ 2 callersFunction_fold
Lowercase and strip diacritics so "garcia" matches "García".
openlibrary/plugins/worksearch/author_suggestion.py:28
↓ 2 callersFunction_get_all_types_and_values
Returns a dictionary of observation types and values mappings. The keys for the dictionary are the id numbers. return: A dictionary of o
openlibrary/core/observations.py:602
↓ 2 callersMethod_get_available_loans
(self, current_loans)
openlibrary/plugins/upstream/models.py:183
↓ 2 callersFunction_get_babel_locale
(lang: str)
openlibrary/core/helpers.py:155
↓ 2 callersMethod_get_batch_end_id
Calculates the end of the batch based on the start_id and the batch_size
openlibrary/coverstore/archive.py:212
↓ 2 callersFunction_get_betterworldbooks_metadata
Returns price and other metadata (currently minimal) for a book currently available on betterworldbooks.com :param str isbn: Normalised ISBN1
openlibrary/core/vendors.py:833
↓ 2 callersFunction_get_book
(identifier: str)
openlibrary/core/waitinglist.py:36
↓ 2 callersFunction_get_cache
(engine)
openlibrary/core/cache.py:368
↓ 2 callersFunction_get_cached_bot_accounts
Returns a list of `thing` table IDs that are associated with bot accounts. Results are cached in the global `cached_bot_accounts` va
openlibrary/admin/numbers.py:92
↓ 2 callersFunction_get_deleted_types_and_values
Returns a dictionary containing all deleted observation types and values. return: Deleted types and values dictionary.
openlibrary/core/observations.py:563
↓ 2 callersFunction_get_drift_info
Return (drift_dict, from_cache). Checks memcache first; fetches GitHub on miss. Keys are int PR numbers. JSON round-trip via memcache stringifies
openlibrary/plugins/openlibrary/status.py:408
↓ 2 callersFunction_get_fernet
()
openlibrary/accounts/model.py:89
↓ 2 callersFunction_get_from_cache
The cache is OpenLibrary's Postgres instead of calling the Wikidata API
openlibrary/core/wikidata.py:227
↓ 2 callersFunction_get_ia_loan
(identifier: str, userid: str | None = None)
openlibrary/core/lending.py:647
↓ 2 callersMethod_get_languages
Extract a list of MARC 21 format languages from an ISBNDb JSONL line.
scripts/providers/isbndb.py:79
↓ 2 callersFunction_get_list_or_404
Fetch a list by key and raise 404 if not found or deleted.
openlibrary/fastapi/lists.py:80
↓ 2 callersMethod_get_lists_cached
(self)
openlibrary/core/models.py:215
↓ 2 callersMethod_get_lists_cached
(self)
openlibrary/core/models.py:1025
↓ 2 callersMethod_get_lists_uncached
(self, limit: int, offset: int)
openlibrary/core/models.py:218
↓ 2 callersMethod_get_lists_uncached
(self, seed=None, limit=100, offset=0)
openlibrary/core/models.py:1028
↓ 2 callersFunction_get_loan_key
(loan)
openlibrary/plugins/openlibrary/borrow_home.py:48
↓ 2 callersMethod_get_many
(self, keys)
openlibrary/api.py:136
↓ 2 callersFunction_get_mock_site
()
openlibrary/tests/core/test_processors.py:52
↓ 2 callersFunction_get_object
Returns the object with the given key. If the key has an OLID and no object is found with that key, it tries to find object with the same OLI
openlibrary/core/processors/readableurls.py:66
↓ 2 callersFunction_get_ol_base_url
()
openlibrary/core/models.py:55
↓ 2 callersFunction_get_path_page_name
()
openlibrary/plugins/openlibrary/stats.py:144
↓ 2 callersFunction_get_pr_info
Fetch title, HEAD SHA, author, and assignee for a PR from GitHub.
openlibrary/plugins/openlibrary/status.py:440
↓ 2 callersMethod_get_seed_strings
(self)
openlibrary/core/lists/model.py:148
↓ 2 callersFunction_get_top_level_path_for_metric
Normalize + shorten the string since it could be user-entered :param str full_path:
openlibrary/plugins/openlibrary/stats.py:158
↓ 2 callersMethod_get_work
(self, work_key: str)
openlibrary/plugins/upstream/mybooks.py:646
↓ 2 callersMethod_get_work_details
(self, work: Work)
openlibrary/plugins/upstream/mybooks.py:649
↓ 2 callersMethod_get_year
Return a year str/int as a four digit string, or None.
scripts/providers/isbndb.py:98
↓ 2 callersMethod_index_of_seed
(self, seed_key: str)
openlibrary/core/lists/model.py:139
↓ 2 callersMethod_interpolateLabel
* Interpolate a label template by replacing {key} placeholders with values. * @param {String} template - The label template (e.g., "Go to page {p
openlibrary/components/lit/OlPagination.js:171
↓ 2 callersMethod_isReadableAccess
(access)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1291
↓ 2 callersFunction_logout
Helper to perform logout and return response.
tests/integration/test_fastapi_auth.py:55
↓ 2 callersFunction_make_aliases
(nc_path: str, pyspy_dump_path: str)
scripts/monitoring/tests/test_olspy_sh.py:6
↓ 2 callersMethod_make_changeset
(self, timestamp, kind, comment, data, changes, author=None)
openlibrary/mocks/mock_infobase.py:135
↓ 2 callersMethod_make_edition
Uses formdata 'i' to create (but not save) an edition of 'work'.
openlibrary/plugins/upstream/addbook.py:474
↓ 2 callersMethod_onRecentSearchClick
(query)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1218
↓ 2 callersMethod_onResultPress
(e, key, meta)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1501
↓ 2 callersMethod_openDialog
()
openlibrary/components/lit/OlDialog.js:369
↓ 2 callersMethod_openModal
(trigger = 'click')
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:955
↓ 2 callersMethod_preload
(self, keys)
openlibrary/core/lists/model.py:213
↓ 2 callersMethod_process
(self, data)
openlibrary/plugins/openlibrary/connection.py:471
↓ 2 callersMethod_process_identifiers
(self, config_, names, values)
openlibrary/plugins/upstream/models.py:201
↓ 2 callersMethod_process_key
(self, key)
openlibrary/plugins/openlibrary/connection.py:446
↓ 2 callersFunction_process_list_delete
Shared delete logic for both route variants.
openlibrary/fastapi/lists.py:87
↓ 2 callersFunction_publication_id
Return the publication's ``self`` link or raw identifier, for logging.
scripts/bwb_opds_imports.py:136
↓ 2 callersMethod_recalculate
()
openlibrary/components/lit/OlCarousel.js:491
↓ 2 callersMethod_reject_spoofed_cookie
Purge a forged cookie and raise 403 with an abuse signal header.
openlibrary/plugins/openlibrary/processors.py:127
↓ 2 callersMethod_releaseScrollLock
Releases the body scroll lock if this dialog holds one. Idempotent.
openlibrary/components/lit/OlDialog.js:677
↓ 2 callersMethod_releaseScrollLock
Releases the body scroll lock if this popover holds one. Idempotent.
openlibrary/components/lit/OlPopover.js:821
↓ 2 callersMethod_removeListeners
()
openlibrary/components/lit/OlPopover.js:830
↓ 2 callersMethod_renderItem
(item)
openlibrary/components/lit/OlSelectPopover.js:558
↓ 2 callersMethod_renderNavArrow
* Render a navigation arrow (previous or next) * @param {String} direction - 'prev' or 'next' * @returns {TemplateResult} Lit template for t
openlibrary/components/lit/OlPagination.js:360
↓ 2 callersMethod_renderPaginationItem
* Render a pagination item (button or anchor based on URL mode) * @param {Object} options - Render options * @param {Number} options.page -
openlibrary/components/lit/OlPagination.js:310
↓ 2 callersFunction_require_s3_auth
Validate the request's IA S3 credentials. Returns None on success or a RawText error response.
openlibrary/plugins/upstream/account.py:455
↓ 2 callersMethod_rubberBand
Apply rubber-band resistance when position exceeds bounds. * Uses an iOS-style formula: overscroll is dampened asymptotically * so the tra
openlibrary/components/lit/OlCarousel.js:263
↓ 2 callersMethod_saveCurrentSearch
()
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1236
↓ 2 callersMethod_save_doc
(self, query, timestamp)
openlibrary/mocks/mock_infobase.py:55
↓ 2 callersMethod_seconds_remaining
(self, start_time: float)
scripts/affiliate_server.py:219
↓ 2 callersMethod_selectValue
* Selection follows focus (WAI-ARIA radiogroup pattern): update the * selected value and notify consumers, but keep the popover open so the
openlibrary/components/lit/OlOptionsPopover.js:391
↓ 2 callersMethod_set_conn_auth_token
Set the auth token on all available connections. The canonical connection lives on ``site.get()._conn`` (set by both web.py and FastA
openlibrary/accounts/__init__.py:42
↓ 2 callersMethod_syncTriggerAria
()
openlibrary/components/lit/OlPopover.js:460
↓ 2 callersMethod_teardownCodeStep
()
openlibrary/components/lit/OpenLibraryOTP.js:388
↓ 2 callersMethod_teardownEmailStep
()
openlibrary/components/lit/OpenLibraryOTP.js:381
← previousnext →901–1,000 of 6,179, ranked by callers