Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/internetarchive/openlibrary
/ functions
Functions
6,179 in github.com/internetarchive/openlibrary
⨍
Functions
6,179
◇
Types & classes
1,059
↳
Endpoints
131
↓ 3 callers
Function
work_search_async
( query: dict, sort: str | None = None, page: int | None = 1, offset: int | None = 0, limi
openlibrary/plugins/worksearch/code.py:1200
↓ 2 callers
Method
GET
(self, key)
openlibrary/plugins/upstream/addbook.py:795
↓ 2 callers
Function
OLCompressor
Create a compressor object for compressing OL data.
openlibrary/utils/olcompress.py:18
↓ 2 callers
Method
POST
(self, category)
openlibrary/coverstore/code.py:479
↓ 2 callers
Method
POST
Internal private API required for testing on localhost
openlibrary/plugins/upstream/account.py:109
↓ 2 callers
Method
POST
Called when the user wants to borrow the edition
openlibrary/plugins/upstream/borrow.py:109
↓ 2 callers
Function
Template
(tmpl_text)
openlibrary/plugins/openlibrary/js/template.js:5
↓ 2 callers
Method
__init__
(self)
openlibrary/solr/data_provider.py:104
↓ 2 callers
Method
_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 callers
Method
_animateSpring
(fromPos, initialVelocity, targetPos, onComplete)
openlibrary/components/lit/OlCarousel.js:416
↓ 2 callers
Method
_attachDialogListeners
()
openlibrary/components/lit/OlDialog.js:715
↓ 2 callers
Method
_baseSearchParams
(query)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1729
↓ 2 callers
Function
_build_preview_response
( source: str | None, provider: str | None, identifier: str | None, save: bool, client_ip:
openlibrary/fastapi/importapi.py:18
↓ 2 callers
Method
_catformat
(self, category: str)
scripts/providers/import_wikisource.py:110
↓ 2 callers
Function
_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 callers
Function
_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 callers
Method
_clearDragStyles
()
openlibrary/components/lit/OlPopover.js:805
↓ 2 callers
Method
_closeModal
()
openlibrary/components/lit/OpenLibraryOTP.js:413
↓ 2 callers
Method
_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 callers
Method
_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 callers
Method
_compute_fields
(self)
openlibrary/plugins/openlibrary/stats.py:191
↓ 2 callers
Function
_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 callers
Function
_compute_is_recognized_bot
(user_agent: str)
openlibrary/utils/request_context.py:112
↓ 2 callers
Method
_countItems
()
openlibrary/components/lit/OlCarousel.js:473
↓ 2 callers
Function
_default_search_response
Default mock response shared by both sync and async mocks.
openlibrary/tests/fastapi/conftest.py:135
↓ 2 callers
Function
_default_subjects_response
Default mock response for subjects search.
openlibrary/tests/fastapi/conftest.py:151
↓ 2 callers
Method
_detachBlurOnScroll
()
openlibrary/components/lit/OlDialog.js:708
↓ 2 callers
Method
_emitChange
(nextSelected, added, removed)
openlibrary/components/lit/OlSelectPopover.js:696
↓ 2 callers
Method
_emitPageChange
()
openlibrary/components/lit/OlCarousel.js:583
↓ 2 callers
Function
_encode_key_part
(key_part: str)
openlibrary/plugins/openlibrary/stats.py:140
↓ 2 callers
Method
_ensure_no_store_entry
(self, sitename, identifier)
openlibrary/plugins/openlibrary/connection.py:194
↓ 2 callers
Function
_fill_data
Add `data` to all docs by querying memcache/database.
openlibrary/data/db.py:106
↓ 2 callers
Method
_focusableRows
()
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1571
↓ 2 callers
Function
_fold
Lowercase and strip diacritics so "garcia" matches "García".
openlibrary/plugins/worksearch/author_suggestion.py:28
↓ 2 callers
Function
_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 callers
Method
_get_available_loans
(self, current_loans)
openlibrary/plugins/upstream/models.py:183
↓ 2 callers
Function
_get_babel_locale
(lang: str)
openlibrary/core/helpers.py:155
↓ 2 callers
Method
_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 callers
Function
_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 callers
Function
_get_book
(identifier: str)
openlibrary/core/waitinglist.py:36
↓ 2 callers
Function
_get_cache
(engine)
openlibrary/core/cache.py:368
↓ 2 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
_get_fernet
()
openlibrary/accounts/model.py:89
↓ 2 callers
Function
_get_from_cache
The cache is OpenLibrary's Postgres instead of calling the Wikidata API
openlibrary/core/wikidata.py:227
↓ 2 callers
Function
_get_ia_loan
(identifier: str, userid: str | None = None)
openlibrary/core/lending.py:647
↓ 2 callers
Method
_get_languages
Extract a list of MARC 21 format languages from an ISBNDb JSONL line.
scripts/providers/isbndb.py:79
↓ 2 callers
Function
_get_list_or_404
Fetch a list by key and raise 404 if not found or deleted.
openlibrary/fastapi/lists.py:80
↓ 2 callers
Method
_get_lists_cached
(self)
openlibrary/core/models.py:215
↓ 2 callers
Method
_get_lists_cached
(self)
openlibrary/core/models.py:1025
↓ 2 callers
Method
_get_lists_uncached
(self, limit: int, offset: int)
openlibrary/core/models.py:218
↓ 2 callers
Method
_get_lists_uncached
(self, seed=None, limit=100, offset=0)
openlibrary/core/models.py:1028
↓ 2 callers
Function
_get_loan_key
(loan)
openlibrary/plugins/openlibrary/borrow_home.py:48
↓ 2 callers
Method
_get_many
(self, keys)
openlibrary/api.py:136
↓ 2 callers
Function
_get_mock_site
()
openlibrary/tests/core/test_processors.py:52
↓ 2 callers
Function
_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 callers
Function
_get_ol_base_url
()
openlibrary/core/models.py:55
↓ 2 callers
Function
_get_path_page_name
()
openlibrary/plugins/openlibrary/stats.py:144
↓ 2 callers
Function
_get_pr_info
Fetch title, HEAD SHA, author, and assignee for a PR from GitHub.
openlibrary/plugins/openlibrary/status.py:440
↓ 2 callers
Method
_get_seed_strings
(self)
openlibrary/core/lists/model.py:148
↓ 2 callers
Function
_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 callers
Method
_get_work
(self, work_key: str)
openlibrary/plugins/upstream/mybooks.py:646
↓ 2 callers
Method
_get_work_details
(self, work: Work)
openlibrary/plugins/upstream/mybooks.py:649
↓ 2 callers
Method
_get_year
Return a year str/int as a four digit string, or None.
scripts/providers/isbndb.py:98
↓ 2 callers
Method
_index_of_seed
(self, seed_key: str)
openlibrary/core/lists/model.py:139
↓ 2 callers
Method
_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 callers
Method
_isReadableAccess
(access)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1291
↓ 2 callers
Function
_logout
Helper to perform logout and return response.
tests/integration/test_fastapi_auth.py:55
↓ 2 callers
Function
_make_aliases
(nc_path: str, pyspy_dump_path: str)
scripts/monitoring/tests/test_olspy_sh.py:6
↓ 2 callers
Method
_make_changeset
(self, timestamp, kind, comment, data, changes, author=None)
openlibrary/mocks/mock_infobase.py:135
↓ 2 callers
Method
_make_edition
Uses formdata 'i' to create (but not save) an edition of 'work'.
openlibrary/plugins/upstream/addbook.py:474
↓ 2 callers
Method
_onRecentSearchClick
(query)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1218
↓ 2 callers
Method
_onResultPress
(e, key, meta)
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1501
↓ 2 callers
Method
_openDialog
()
openlibrary/components/lit/OlDialog.js:369
↓ 2 callers
Method
_openModal
(trigger = 'click')
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:955
↓ 2 callers
Method
_preload
(self, keys)
openlibrary/core/lists/model.py:213
↓ 2 callers
Method
_process
(self, data)
openlibrary/plugins/openlibrary/connection.py:471
↓ 2 callers
Method
_process_identifiers
(self, config_, names, values)
openlibrary/plugins/upstream/models.py:201
↓ 2 callers
Method
_process_key
(self, key)
openlibrary/plugins/openlibrary/connection.py:446
↓ 2 callers
Function
_process_list_delete
Shared delete logic for both route variants.
openlibrary/fastapi/lists.py:87
↓ 2 callers
Function
_publication_id
Return the publication's ``self`` link or raw identifier, for logging.
scripts/bwb_opds_imports.py:136
↓ 2 callers
Method
_recalculate
()
openlibrary/components/lit/OlCarousel.js:491
↓ 2 callers
Method
_reject_spoofed_cookie
Purge a forged cookie and raise 403 with an abuse signal header.
openlibrary/plugins/openlibrary/processors.py:127
↓ 2 callers
Method
_releaseScrollLock
Releases the body scroll lock if this dialog holds one. Idempotent.
openlibrary/components/lit/OlDialog.js:677
↓ 2 callers
Method
_releaseScrollLock
Releases the body scroll lock if this popover holds one. Idempotent.
openlibrary/components/lit/OlPopover.js:821
↓ 2 callers
Method
_removeListeners
()
openlibrary/components/lit/OlPopover.js:830
↓ 2 callers
Method
_renderItem
(item)
openlibrary/components/lit/OlSelectPopover.js:558
↓ 2 callers
Method
_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 callers
Method
_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 callers
Function
_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 callers
Method
_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 callers
Method
_saveCurrentSearch
()
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1236
↓ 2 callers
Method
_save_doc
(self, query, timestamp)
openlibrary/mocks/mock_infobase.py:55
↓ 2 callers
Method
_seconds_remaining
(self, start_time: float)
scripts/affiliate_server.py:219
↓ 2 callers
Method
_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 callers
Method
_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 callers
Method
_syncTriggerAria
()
openlibrary/components/lit/OlPopover.js:460
↓ 2 callers
Method
_teardownCodeStep
()
openlibrary/components/lit/OpenLibraryOTP.js:388
↓ 2 callers
Method
_teardownEmailStep
()
openlibrary/components/lit/OpenLibraryOTP.js:381
← previous
next →
901–1,000 of 6,179, ranked by callers