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
↓ 5 callers
Method
upload
Uploads an image in static dir
openlibrary/coverstore/tests/test_webapp.py:63
↓ 5 callers
Method
validate_data
Validates data submitted from check-in dialog.
openlibrary/plugins/upstream/checkins.py:120
↓ 5 callers
Function
web_ctx_ip
Context manager that temporarily sets web.ctx.ip for legacy code that needs it. This is a workaround for threadpool threads where web.ctx.ip
openlibrary/utils/request_context.py:260
↓ 4 callers
Function
_cleanup
()
openlibrary/coverstore/code.py:115
↓ 4 callers
Function
_count_things
(db, type)
openlibrary/admin/numbers.py:227
↓ 4 callers
Function
_exists
(filename)
openlibrary/coverstore/tests/test_coverstore.py:36
↓ 4 callers
Method
_focusEditor
(e)
openlibrary/components/lit/OLMarkdownEditor.js:493
↓ 4 callers
Method
_get_batch
(self, start_id=None, **kwargs)
openlibrary/coverstore/archive.py:254
↓ 4 callers
Function
_get_list_seeds_or_404
(key: str)
openlibrary/fastapi/lists.py:265
↓ 4 callers
Function
_get_members_of_group
Returns keys of all members of the group identifier by group_key.
openlibrary/plugins/openlibrary/code.py:846
↓ 4 callers
Function
_get_subject
(subject, prefix)
openlibrary/core/lists/engine.py:14
↓ 4 callers
Method
_make_edition
(self, ocaid=None)
openlibrary/plugins/upstream/tests/test_models.py:151
↓ 4 callers
Method
_make_mock_tag
(self, name, tag_type, key="/tags/OL1T")
openlibrary/plugins/worksearch/tests/test_subjects.py:31
↓ 4 callers
Method
_make_subject_link
(self, title, prefix="")
openlibrary/core/models.py:648
↓ 4 callers
Function
_process_subject
(s: dict)
openlibrary/plugins/openlibrary/lists.py:930
↓ 4 callers
Method
_random_string
(self, n: int)
openlibrary/core/cache.py:98
↓ 4 callers
Method
_requestClose
(reason)
openlibrary/components/lit/OlPopover.js:658
↓ 4 callers
Method
_run_main
(self, fake_now, main_kwargs)
scripts/solr_updater/tests/test_trending_updater_init.py:9
↓ 4 callers
Function
_sort_values
Given a list of ordered value IDs and a list of value dictionaries, returns an ordered list of values. return: An ordered list of values
openlibrary/core/observations.py:543
↓ 4 callers
Method
_track
Send a Matomo analytics event
openlibrary/plugins/openlibrary/js/search-modal/SearchModal.js:1448
↓ 4 callers
Method
_updateInert
()
openlibrary/components/lit/OlCarousel.js:533
↓ 4 callers
Function
_update_list_seeds
(key: str, payload: dict)
openlibrary/fastapi/lists.py:272
↓ 4 callers
Method
add
(self, key, val, restrict_keys=True)
openlibrary/plugins/importapi/import_edition_builder.py:146
↓ 4 callers
Function
add_availability
( editions_map: dict[str, OpenLibraryEdition], )
openlibrary/plugins/books/dynlinks.py:412
↓ 4 callers
Function
add_availability_async
Adds API v2 'availability' key to dicts :param items: items with fields containing ocaids
openlibrary/core/lending.py:534
↓ 4 callers
Function
add_db_name
db_name = Author name followed by dates. adds 'db_name' in place for each author.
openlibrary/catalog/add_book/match.py:101
↓ 4 callers
Method
apply
Applies a function to this series. :return: Returns self
openlibrary/plugins/admin/graphs.py:59
↓ 4 callers
Function
bash_w_obfi
(cmd: str)
scripts/tests/test_obfi_sh.py:15
↓ 4 callers
Function
can_write
Any user with bot flag set can write. For backward-compatability, all admin users and people in api usergroup are also allowed to write.
openlibrary/plugins/openlibrary/code.py:852
↓ 4 callers
Function
clean_null
(val: str | None)
scripts/promise_batch_imports.py:52
↓ 4 callers
Method
closeDropper
* Closes this dropper. * * Sets `isDropperOpen` to `false`. * * Calls `onDisabledClick()` if this dropper is disabled. * Othe
openlibrary/plugins/openlibrary/js/dropper/Dropper.js:143
↓ 4 callers
Function
compare_author_fields
(e1_authors, e2_authors)
openlibrary/catalog/add_book/match.py:277
↓ 4 callers
Method
compute_key
Computes memcache key for storing result of function call with given arguments.
openlibrary/core/cache.py:182
↓ 4 callers
Method
containsOptionWithTag
* Checks if a menu option which represents the given tag is in this container. * * @param {Tag} tag * @returns {boolean} `true` if a me
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:112
↓ 4 callers
Function
createAndInitialize
* Creates and initializes a CheckInComponents instance for testing. * @returns {CheckInComponents}
tests/unit/js/my-books.test.js:18
↓ 4 callers
Function
createComparableTag
* Returns a Tag-like object that can be used for equality checks. * * The returned object will contain the given tag's `tagName` and `tagType`, both
openlibrary/plugins/openlibrary/js/bulk-tagger/models/Tag.js:67
↓ 4 callers
Method
create_event
( cls, username, work_id, edition_id, event_date, event_type=B
openlibrary/core/bookshelves_events.py:23
↓ 4 callers
Function
date_n_days_ago
Args: n (int) - number of days since start start (date) - date to start counting from (default: today) Returns: A (da
openlibrary/utils/dateutil.py:28
↓ 4 callers
Method
delete_items
(cls, ia_ids: list[str], batch_id: int | None = None, _test: bool = False)
openlibrary/core/imports.py:265
↓ 4 callers
Method
delete_multi
(self, keys, time=0)
openlibrary/utils/olmemcache.py:47
↓ 4 callers
Function
displayIsbnError
(event, errorMessage)
openlibrary/plugins/openlibrary/js/add-book.js:62
↓ 4 callers
Function
download_url
(item, filename)
openlibrary/plugins/upstream/data.py:25
↓ 4 callers
Method
equals
* Determins if the given tag is equal to this tag. * * Two tags are considered equal if case-insensitive comparisons of * their names a
openlibrary/plugins/openlibrary/js/bulk-tagger/models/Tag.js:143
↓ 4 callers
Function
extract_cover
(publication: dict[str, Any])
scripts/bwb_opds_imports.py:129
↓ 4 callers
Function
extract_edition_olid
(key: str)
openlibrary/solr/updater/work.py:236
↓ 4 callers
Function
extract_year
(date_string: str)
scripts/providers/import_wikisource.py:40
↓ 4 callers
Function
f
(dates)
openlibrary/plugins/admin/code.py:543
↓ 4 callers
Function
fetch_until_successful
(url: str)
scripts/providers/import_wikisource.py:372
↓ 4 callers
Function
find_next_url
(feed: dict[str, Any])
scripts/bwb_opds_imports.py:178
↓ 4 callers
Method
find_staged_or_pending
Find staged or pending items in import_item matching the ia_id identifiers. Given a list of ISBNs as identifiers, creates list of `i
openlibrary/core/imports.py:145
↓ 4 callers
Method
formatHeading
(level)
openlibrary/components/lit/OLMarkdownEditor.js:499
↓ 4 callers
Function
format_languages
Map ImportRecord language data to match Open Library's expected format. Supports a variety of input formats, including: - Full key, e.g.
openlibrary/catalog/utils/__init__.py:425
↓ 4 callers
Function
fromObj
(obj)
tests/unit/js/searchModalConstants.test.js:109
↓ 4 callers
Method
from_input
(i: dict)
openlibrary/plugins/importapi/import_ui.py:116
↓ 4 callers
Function
func1
(value)
openlibrary/plugins/openlibrary/js/goodreads_import.js:32
↓ 4 callers
Method
generate_login_code
Returns a string that can be set as login cookie to log in as this user.
openlibrary/accounts/model.py:358
↓ 4 callers
Function
getDeepActiveElement
()
openlibrary/components/lit/utils/focus-utils.js:23
↓ 4 callers
Method
getSelectedItems
()
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:232
↓ 4 callers
Method
getType
(olid)
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:298
↓ 4 callers
Method
get_acquisitions
(self, ed_or_solr: Edition | dict)
openlibrary/book_providers.py:425
↓ 4 callers
Function
get_adapter
(name)
openlibrary/utils/schema.py:30
↓ 4 callers
Method
get_by_edition
(edition_id: int, provider_name: str | None = None)
openlibrary/core/acquisitions.py:66
↓ 4 callers
Method
get_by_work
(work_id: int)
openlibrary/core/acquisitions.py:80
↓ 4 callers
Function
get_changes
(query: dict[str, str | int], revision: int | None = None)
openlibrary/plugins/upstream/utils.py:479
↓ 4 callers
Method
get_cover_url
(self, size, use_solr=True)
openlibrary/plugins/upstream/models.py:521
↓ 4 callers
Method
get_covers
(self, use_solr=True)
openlibrary/plugins/upstream/models.py:469
↓ 4 callers
Method
get_data
(self, key)
openlibrary/plugins/openlibrary/code.py:765
↓ 4 callers
Method
get_document
(self, key)
openlibrary/solr/data_provider.py:366
↓ 4 callers
Method
get_expiry_in_hours
(self)
openlibrary/core/waitinglist.py:77
↓ 4 callers
Method
get_exports
(self, lst: List, raw: bool = False)
openlibrary/plugins/openlibrary/lists.py:1010
↓ 4 callers
Method
get_following
Get subscriber's subscriptions
openlibrary/core/follows.py:57
↓ 4 callers
Method
get_ia_collections
(self)
openlibrary/core/models.py:318
↓ 4 callers
Method
get_ia_download_link
Returns IA download link for given suffix. The suffix is usually one of '.pdf', '.epub', '.mobi', '_djvu.txt'
openlibrary/core/models.py:353
↓ 4 callers
Method
get_ia_record
Generate Edition record from Archive.org metadata, in lieu of a MARC record :param dict metadata: metadata retrieved from metadata A
openlibrary/plugins/importapi/code.py:393
↓ 4 callers
Function
get_identifier_config
(identifier: Literal["work", "edition", "author"])
openlibrary/plugins/upstream/utils.py:1180
↓ 4 callers
Method
get_item_status
(self, ekey, iaid, collections)
openlibrary/plugins/books/readlinks.py:37
↓ 4 callers
Method
get_latest_event_date
(cls, username, work_id, event_type)
openlibrary/core/bookshelves_events.py:50
↓ 4 callers
Method
get_linkage
:param original str: The original field e.g. '245' :param link str: The linkage {original}$6 value e.g. '880-01' :rtype: Marc
openlibrary/catalog/marc/marc_base.py:89
↓ 4 callers
Function
get_list_subjects
(key: str, limit: int = 20)
openlibrary/plugins/openlibrary/lists.py:939
↓ 4 callers
Function
get_login_error
Nesting the LOGIN_ERRORS dictionary inside a function prevents an AttributeError with the web.ctx.lang library
openlibrary/plugins/upstream/account.py:72
↓ 4 callers
Method
get_lower_subfield_values
(self)
openlibrary/catalog/marc/marc_base.py:54
↓ 4 callers
Function
get_ol_dumps
Get list of all archive.org items in the ol_exports collection uploaded by archive.org staff.
openlibrary/plugins/upstream/data.py:13
↓ 4 callers
Function
get_ol_env
()
openlibrary/core/env.py:18
↓ 4 callers
Method
get_or_raise
Utility method retrieve an openlibrary account by its email, username or archive.org itemname (i.e. link)
openlibrary/accounts/model.py:578
↓ 4 callers
Method
get_owner
(self)
openlibrary/core/lists/model.py:101
↓ 4 callers
Method
get_photo
(self)
openlibrary/plugins/upstream/models.py:407
↓ 4 callers
Function
get_publication_year
Return the publication year from a book in YYYY format by looking for four consecutive digits not followed by another digit. If no match, ret
openlibrary/catalog/utils/__init__.py:269
↓ 4 callers
Method
get_requests
( cls, limit: int = 50, page: int = 1, mode: ApiMode = "all", order_by
openlibrary/core/edits.py:69
↓ 4 callers
Function
get_solr_updater_lag_event
(solr_next=False)
scripts/monitoring/solr_updater_monitor.py:9
↓ 4 callers
Method
get_subfields
(self, want)
openlibrary/catalog/marc/tests/test_marc.py:23
↓ 4 callers
Method
get_user_key
(self)
openlibrary/core/waitinglist.py:48
↓ 4 callers
Method
get_window
(self)
openlibrary/utils/processors.py:31
↓ 4 callers
Method
hide
Obfuscate the IP address
scripts/obfi/hide.py:43
↓ 4 callers
Method
hide
* Hides this check-in prompt.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:397
↓ 4 callers
Function
initSignupForm
()
openlibrary/plugins/openlibrary/js/signup.js:3
↓ 4 callers
Function
init_signal_handler
Initializes signal handlers for graceful shutdown on SIGINT and SIGTERM. Registers the given handler function to respond to: - SIGINT
scripts/utils/graceful_shutdown.py:32
↓ 4 callers
Method
is_admin
(self)
openlibrary/plugins/openlibrary/code.py:793
↓ 4 callers
Method
is_expired
(self)
openlibrary/core/waitinglist.py:85
↓ 4 callers
Method
is_librarian
(self)
openlibrary/core/models.py:967
↓ 4 callers
Function
is_redirect
:param Thing thing: :rtype: bool
openlibrary/catalog/add_book/__init__.py:185
← previous
next →
501–600 of 6,179, ranked by callers