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
↓ 6 callers
Function
setup_requests
(config=config)
openlibrary/plugins/upstream/utils.py:1622
↓ 6 callers
Function
showToast
* Creates and displays a toast component. * * @param {String} message Message displayed in toast component * @param {JQuery} $parent Mount point fo
openlibrary/plugins/openlibrary/js/modals/index.js:189
↓ 6 callers
Function
ssSet
(key, value)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:370
↓ 6 callers
Method
submit
(self, graphite_address: str | tuple[str, int])
scripts/monitoring/utils.py:27
↓ 6 callers
Method
summary
(cls)
openlibrary/core/follows.py:145
↓ 6 callers
Function
tidy_subject
(s: str)
openlibrary/catalog/marc/get_subjects.py:36
↓ 6 callers
Method
to_markdown
(self)
openlibrary/plugins/upstream/table_of_contents.py:139
↓ 6 callers
Function
trim_doc
Replace empty values in the document with Nones.
openlibrary/plugins/upstream/addbook.py:533
↓ 6 callers
Method
type_to_argparse
(typ: type)
scripts/solr_builder/solr_builder/fn_to_cli.py:99
↓ 6 callers
Method
update
(self, cid, **kwargs)
openlibrary/coverstore/archive.py:272
↓ 6 callers
Method
url
(self, suffix="", **params)
openlibrary/core/models.py:249
↓ 6 callers
Method
validate
(self, data, tag_type)
openlibrary/plugins/upstream/addtag.py:208
↓ 6 callers
Function
websafe
(value)
openlibrary/plugins/openlibrary/js/jsdef.js:117
↓ 6 callers
Function
write
(path, text)
scripts/pull-templates.py:40
↓ 6 callers
Function
xopen
(path: str, mode: str)
openlibrary/data/dump.py:93
↓ 5 callers
Function
FocusableHostMixin
(BaseClass)
openlibrary/components/lit/utils/focusable-host-mixin.js:43
↓ 5 callers
Method
GET
(self, key)
openlibrary/plugins/upstream/code.py:71
↓ 5 callers
Method
_clearTimers
()
openlibrary/components/lit/OlTooltip.js:409
↓ 5 callers
Method
_hide
()
openlibrary/components/lit/OlTooltip.js:276
↓ 5 callers
Function
_lists_json_data
Shared helper for lists.json endpoints.
openlibrary/fastapi/lists.py:187
↓ 5 callers
Function
_login
Helper to perform login and return response.
tests/integration/test_fastapi_auth.py:35
↓ 5 callers
Method
_make_handler
(self)
openlibrary/plugins/upstream/tests/test_account.py:189
↓ 5 callers
Method
_make_handler
(self)
openlibrary/plugins/worksearch/tests/test_subjects.py:28
↓ 5 callers
Method
_monkeypatch_hooks
(self, monkeypatch)
openlibrary/tests/core/test_processors_invalidation.py:174
↓ 5 callers
Function
_pagination_url
(url: URL, **kwargs)
openlibrary/plugins/openlibrary/lists.py:818
↓ 5 callers
Method
_prepare_select
(self, query)
openlibrary/utils/solr.py:256
↓ 5 callers
Function
_prepare_solr_query_params
:param param: dict of query parameters Prepares the list of parameters for a Solr query, encapsulating the business logic.
openlibrary/plugins/worksearch/code.py:341
↓ 5 callers
Method
_request
(self, path, method=None, data=None)
openlibrary/tests/core/test_processors.py:30
↓ 5 callers
Function
amazon_affiliate_url
Return an Amazon affiliate URL for a book, handling 979-prefix ISBNs. Amazon's /dp/<ASIN>/ route only accepts ISBN-10 or a real ASIN. For 979
openlibrary/core/vendors.py:311
↓ 5 callers
Function
audit_accounts
Performs an audit of the IA or OL account having this email. The audit: - verifies the password is correct for this account - aborts if a
openlibrary/accounts/model.py:1001
↓ 5 callers
Function
availabilityOptionsFromElement
(el)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:51
↓ 5 callers
Function
build_pool
Searches for existing edition matches on title and bibliographic keys. :param dict rec: Edition record :rtype: dict :return: {<ident
openlibrary/catalog/add_book/__init__.py:459
↓ 5 callers
Function
build_titles
Uses a full title to create normalized and short title versions. Used for expanding a set of title variants for matching, not for storing
openlibrary/catalog/add_book/match.py:158
↓ 5 callers
Function
commify
(n)
openlibrary/plugins/openlibrary/js/python.js:10
↓ 5 callers
Method
convert
(self)
openlibrary/core/olmarkdown.py:135
↓ 5 callers
Function
createCards
(array)
openlibrary/plugins/openlibrary/js/team.js:97
↓ 5 callers
Method
delete_all_by_username
(cls, username, _test=False)
openlibrary/core/db.py:147
↓ 5 callers
Method
do_import
(self, identifier: str, save: bool)
openlibrary/plugins/importapi/import_ui.py:175
↓ 5 callers
Method
expand_isbns
Expands the list of isbns by adding ISBN-10 for ISBN-13 and vice-verse.
openlibrary/plugins/ol_infobase.py:592
↓ 5 callers
Function
extract_isbn
Return the ISBN-13 from an OPDS ``metadata.identifier`` URN, or None.
scripts/bwb_opds_imports.py:109
↓ 5 callers
Function
extract_price
Return ``{currency, value}`` from the first buy-acquisition link, or None.
scripts/bwb_opds_imports.py:117
↓ 5 callers
Function
fail
(reason)
openlibrary/plugins/openlibrary/js/goodreads_import.js:62
↓ 5 callers
Method
fetchPartials
()
openlibrary/plugins/openlibrary/js/carousel/Carousel.js:168
↓ 5 callers
Function
findFocusableIndex
(focusable, deepActive)
openlibrary/components/lit/utils/focus-utils.js:92
↓ 5 callers
Function
fix_l_in_date
(date)
openlibrary/catalog/utils/__init__.py:109
↓ 5 callers
Method
from_db
( db_table_of_contents: list[dict] | list[str] | list[str | dict], )
openlibrary/plugins/upstream/table_of_contents.py:25
↓ 5 callers
Method
get
(self, key)
openlibrary/tests/core/test_processors.py:15
↓ 5 callers
Method
getShowcases
* @returns {Array<ShowcaseItem>}
openlibrary/plugins/openlibrary/js/my-books/store/index.js:40
↓ 5 callers
Method
get_available_loans
Get the resource types currently available to be loaned out for this edition. Does NOT take into account the user's status (e.g. num
openlibrary/plugins/upstream/models.py:163
↓ 5 callers
Method
get_by_key
(cls, key: str)
openlibrary/accounts/model.py:600
↓ 5 callers
Method
get_counts
Returns the stats for last n days as an array useful for plotting. i.e. an array of [x, y] tuples where y is the value and `x` the x c
openlibrary/core/admin.py:35
↓ 5 callers
Method
get_covers
Utility for fetching covers from the database start_id: explicitly define a starting id. This is significant because an offset would
openlibrary/coverstore/archive.py:218
↓ 5 callers
Method
get_document
Returns the document with specified key from the database. :param str key: type-prefixed key (ex: /books/OL1M) :rtype: dict
openlibrary/solr/data_provider.py:172
↓ 5 callers
Function
get_fulltext_min
()
openlibrary/plugins/worksearch/schemes/works.py:732
↓ 5 callers
Method
get_image_urls
Get all image URLs for the entity. Images are typically stored on Wikimedia Commons. Property P18 is used for images.
openlibrary/core/wikidata.py:136
↓ 5 callers
Function
get_locales
()
openlibrary/i18n/__init__.py:134
↓ 5 callers
Function
get_many
(keys: list[str])
openlibrary/plugins/upstream/merge_authors.py:198
↓ 5 callers
Method
get_seeds
(self, key)
openlibrary/plugins/openlibrary/tests/test_listapi.py:49
↓ 5 callers
Method
get_stats
(self, today)
openlibrary/plugins/admin/code.py:476
↓ 5 callers
Method
get_url
Constructs a URL for this page with given suffix and query params. The suffix is added to the URL of the page and query params are appended a
openlibrary/core/models.py:183
↓ 5 callers
Function
get_wd_item_id
(string: str)
scripts/providers/import_wikisource.py:95
↓ 5 callers
Function
htmlquote
(text)
openlibrary/plugins/openlibrary/js/jsdef.js:138
↓ 5 callers
Method
initialize
* Creates a new menu option. * * Must be called before an event handler can be attached to * this menu option
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:83
↓ 5 callers
Function
isFocusable
(el)
openlibrary/components/lit/utils/focus-utils.js:41
↓ 5 callers
Function
isbns_from_record
Returns a list of all isbns from the various possible isbn fields. :param dict rec: Edition import record :rtype: list
openlibrary/catalog/add_book/__init__.py:438
↓ 5 callers
Method
json_encode
json.dumps without extra spaces. memcache doesn't like spaces in the key.
openlibrary/core/cache.py:187
↓ 5 callers
Function
languageNameFromOptions
(options, code)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:251
↓ 5 callers
Method
load
(self)
scripts/affiliate_server.py:714
↓ 5 callers
Function
localizeAvailabilityOptions
(i18nStrings)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:33
↓ 5 callers
Function
matchSmallMediumCovers
({ url })
openlibrary/plugins/openlibrary/js/service-worker-matchers.js:16
↓ 5 callers
Method
memcache_delete_by_args
A helper method to let you pass in arguments normally instead of as a tuple and dict
openlibrary/core/cache.py:213
↓ 5 callers
Function
mk_norm
Normalizes titles and strips ALL spaces and small words to aid with string comparisons of two titles. Used in comparing Work titles.
openlibrary/catalog/add_book/match.py:72
↓ 5 callers
Function
mock_import_request
Return a factory that creates a mock ImportPreviewRequest.
openlibrary/tests/fastapi/test_importapi.py:58
↓ 5 callers
Method
most_logged_books
Returns a ranked list of work OLIDs (in the form of an integer -- i.e. OL123W would be 123) which have been most logged by users. This
openlibrary/core/bookshelves.py:109
↓ 5 callers
Function
new_doc
(type_: Literal["/type/author"], **data)
openlibrary/plugins/upstream/addbook.py:91
↓ 5 callers
Function
parse_datetime
Parses ISO datetime formatted string.:: >>> parse_datetime("2009-01-02T03:04:05.006789") datetime.datetime(2009, 1, 2, 3, 4, 5, 6789)
openlibrary/tests/core/test_unmarshal.py:23
↓ 5 callers
Function
pick_first_date
(dates)
openlibrary/catalog/utils/__init__.py:148
↓ 5 callers
Function
print_dump
Print the given json_records in the dump format.
openlibrary/data/dump.py:36
↓ 5 callers
Function
queueAction
(actionName, itemName, targetUrl, itemType)
openlibrary/plugins/openlibrary/js/utils.js:91
↓ 5 callers
Method
quote
(self, value)
openlibrary/utils/schema.py:101
↓ 5 callers
Method
recentchanges
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:238
↓ 5 callers
Method
reload
Triggers on_new_version event for all the documents modified since last_poll_time.
openlibrary/core/processors/invalidation.py:122
↓ 5 callers
Method
reload
(self, servers)
openlibrary/plugins/admin/code.py:189
↓ 5 callers
Function
remove_duplicates
(seq: list[Any])
openlibrary/catalog/marc/parse.py:162
↓ 5 callers
Method
reset
* Resets the status bar.
openlibrary/plugins/openlibrary/js/ile/index.js:56
↓ 5 callers
Method
run
(self, coro: Coroutine[Any, Any, T])
openlibrary/utils/async_utils.py:26
↓ 5 callers
Function
safeint
>>> safeint('1') 1 >>> safeint('x') >>> safeint('x', 0) 0
openlibrary/coverstore/utils.py:42
↓ 5 callers
Method
seek
(self, offset)
scripts/solr_updater/solr_updater.py:77
↓ 5 callers
Method
set
(self, key, value)
openlibrary/mocks/mock_memcache.py:15
↓ 5 callers
Method
set_auth_token
(self, token)
openlibrary/mocks/mock_infobase.py:364
↓ 5 callers
Method
show
* Shows this menu option.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:176
↓ 5 callers
Function
sleep
(secs)
openlibrary/conftest.py:74
↓ 5 callers
Function
slice
(array, begin, end)
openlibrary/plugins/openlibrary/js/python.js:31
↓ 5 callers
Function
storify
(d)
openlibrary/plugins/admin/code.py:526
↓ 5 callers
Method
timestamp
(self)
openlibrary/coverstore/archive.py:310
↓ 5 callers
Method
updateMenuOptionState
* Sets the value of `optionState` and updates the view. * * @param {OptionState} menuOptionState * * @throws Will throw an error i
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:137
↓ 5 callers
Function
updateRequest
* Updates an existing librarian request. * * @param {'comment'|'claim'|'approve'|'decline'} action Denotes the type of update being sent * @param {
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestService.js:39
↓ 5 callers
Method
update_account
(self, username, **kw)
openlibrary/mocks/mock_infobase.py:326
↓ 5 callers
Function
update_list_seed_metadata
Modifies the original ListSeedMetadata inplace.
openlibrary/core/models.py:493
↓ 5 callers
Function
update_url_with_params
(url: str, new_params: dict[str, str])
scripts/providers/import_wikisource.py:32
← previous
next →
401–500 of 6,179, ranked by callers