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
↓ 2 callers
Method
_updateBackgroundColor
()
openlibrary/components/lit/OLReadMore.js:156
↓ 2 callers
Function
_update_spam_doc
(**kwargs)
openlibrary/plugins/upstream/spamcheck.py:29
↓ 2 callers
Function
_validate_catalog
( catalog: Catalog, )
openlibrary/i18n/__init__.py:75
↓ 2 callers
Function
_write_test_config
(tmp_path: Path, body: str | None = None)
openlibrary/tests/core/test_features.py:28
↓ 2 callers
Method
add
(self, key, value)
openlibrary/mocks/mock_memcache.py:21
↓ 2 callers
Function
addGoalEditClickListener
* Adds click listener to the given edit link. * * Given modal will be displayed when the edit link * is clicked. * @param {HTMLElement} editLink A
openlibrary/plugins/openlibrary/js/reading-goals/index.js:67
↓ 2 callers
Function
addGoalSubmissionListener
* Adds click listener to given reading goal form submission button. * * On click, POSTs form to server. Updates view depending on whether * the ac
openlibrary/plugins/openlibrary/js/reading-goals/index.js:92
↓ 2 callers
Function
addText
(text)
openlibrary/plugins/openlibrary/js/template.js:16
↓ 2 callers
Function
add_cover
Adds a cover to coverstore and returns the cover id. :param str cover_url: URL of cover image :param str ekey: Edition key /book/OL..M
openlibrary/catalog/add_book/__init__.py:314
↓ 2 callers
Method
add_docs
(self, docs)
openlibrary/tests/solr/test_update.py:83
↓ 2 callers
Function
add_iframe
(selector, src)
openlibrary/plugins/openlibrary/js/covers.js:41
↓ 2 callers
Method
add_illustrators
(self, illustrators: list[str])
scripts/providers/import_wikisource.py:283
↓ 2 callers
Method
add_job
( self, func, trigger=None, args=None, kwargs=None, id=None,
scripts/utils/scheduler.py:28
↓ 2 callers
Method
add_list
(self, key: str, key2: str)
openlibrary/core/ia.py:306
↓ 2 callers
Method
add_subjects
(self, subjects: list[str])
scripts/providers/import_wikisource.py:287
↓ 2 callers
Function
affiliate_id
(affiliate)
openlibrary/core/helpers.py:299
↓ 2 callers
Function
append_random_suffix
(text: str, limit: int = 9999)
openlibrary/accounts/model.py:47
↓ 2 callers
Method
args_dict
(self)
scripts/solr_builder/solr_builder/fn_to_cli.py:78
↓ 2 callers
Function
assert_valid_html
Assert that ``html_string`` is well-formed HTML with no orphan/mismatched tags. Uses lxml's HTML parser with ``recover=False``, which raises
openlibrary/tests/core/test_jinja.py:86
↓ 2 callers
Function
attachNewActiveShowcaseItem
(listKey, seedKey, listTitle, coverUrl = DEFAULT_COVER_URL)
openlibrary/plugins/openlibrary/js/lists/ShowcaseItem.js:299
↓ 2 callers
Method
authenticate
(cls, email: str, password: str, test: bool = False)
openlibrary/accounts/model.py:723
↓ 2 callers
Method
autologin
Login to Open Library with credentials taken from ~/.olrc file. The ~/.olrc file must be in ini format (format readable by configpars
openlibrary/api.py:75
↓ 2 callers
Function
batch_import
This processes raw byte data from a JSONL POST to the batch import endpoint. Each line in the JSONL file (i.e. import item) must pass the sa
openlibrary/core/batch_imports.py:74
↓ 2 callers
Method
bind_to_webpy_db
Allow Sentry to record DB events.
openlibrary/utils/sentry.py:106
↓ 2 callers
Method
block_ips
(self, ips)
openlibrary/plugins/admin/code.py:502
↓ 2 callers
Method
build
(self)
openlibrary/solr/updater/work.py:304
↓ 2 callers
Function
buildSparql
(authors)
openlibrary/plugins/openlibrary/js/readinglog_stats.js:144
↓ 2 callers
Function
buildUrl
* Constructs a search API or page URL containing the given query fragment. * * @param {string} queryFragment * @param {boolean} forUi
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:86
↓ 2 callers
Function
build_data0
()
openlibrary/plugins/books/tests/test_dynlinks.py:23
↓ 2 callers
Method
build_identifiers
(self)
openlibrary/solr/updater/work.py:664
↓ 2 callers
Function
build_job_query
:param job: job to complete :param start_at: key (type-prefixed) to start from as opposed to offset; WAY more efficient since offset has
scripts/solr_builder/solr_builder/solr_builder.py:338
↓ 2 callers
Method
cache_cached_editions_ia_metadata
(self)
scripts/solr_builder/solr_builder/solr_builder.py:238
↓ 2 callers
Method
cache_get
Reads value of a key from the cache. When key is a string, this is equvivalant to:: return cache[key] When key is a 2-t
openlibrary/core/cache.py:481
↓ 2 callers
Method
cache_set
Sets a key to a given value in the cache. When key is a string, this is equvivalant to:: cache[key] = value When key is
openlibrary/core/cache.py:500
↓ 2 callers
Function
cached_pd_org_query
()
openlibrary/plugins/openlibrary/pd.py:70
↓ 2 callers
Method
capture_exception_webpy
(self)
openlibrary/utils/sentry.py:89
↓ 2 callers
Function
checkFacetMoreLessVisibility
Runs visibility tests for 'less', 'bull' and 'more' elements in document * * @param {Number} totalFacet total number of facet * @param {N
tests/unit/js/search.test.js:88
↓ 2 callers
Function
checkFacetVisibility
Runs visibility tests for all 'facetEntry' elements in document. * * @param {Number} totalFacet total number of facet * @param {Number} e
tests/unit/js/search.test.js:62
↓ 2 callers
Function
check_cover_url_host
(cover_url: str | None, allowed_cover_hosts: Iterable[str] = ALLOWED_COVER_HOSTS)
openlibrary/catalog/add_book/__init__.py:578
↓ 2 callers
Function
check_digit_10
Takes the first 9 digits of an ISBN10 and returns the calculated final checkdigit.
openlibrary/utils/isbn.py:6
↓ 2 callers
Function
check_digit_13
Takes the first 12 digits of an ISBN13 and returns the calculated final checkdigit.
openlibrary/utils/isbn.py:22
↓ 2 callers
Function
choose_sorting_ddc
(normalized_ddcs: Iterable[str])
openlibrary/utils/ddc.py:168
↓ 2 callers
Function
choose_sorting_lcc
(sortable_lccs: Iterable[str])
openlibrary/utils/lcc.py:210
↓ 2 callers
Function
clear_cookies
()
openlibrary/accounts/model.py:249
↓ 2 callers
Method
closeModal
* Closes the opened `colorbox` modal.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:336
↓ 2 callers
Function
collapse_multiple_space
(s: str)
openlibrary/utils/ddc.py:42
↓ 2 callers
Function
compare_date
(e1: dict, e2: dict)
openlibrary/catalog/add_book/match.py:211
↓ 2 callers
Function
compare_isbn
(e1: dict, e2: dict)
openlibrary/catalog/add_book/match.py:228
↓ 2 callers
Function
compare_lccn
(e1: dict, e2: dict)
openlibrary/catalog/add_book/match.py:202
↓ 2 callers
Function
compose_ia_url
This needs to be exposed by a generalized API endpoint within plugins/api/browse which lets lazy-load more items for the homepage carousel and
openlibrary/core/lending.py:111
↓ 2 callers
Function
compute_trending_z_score
Calculate the trending z-score for the last 24h compared to the past events. I.e. How many standard deviations the current number of events i
scripts/solr_updater/trending_updater_hourly.py:251
↓ 2 callers
Function
compute_work_search_html_fields
Compute the Solr fields needed for rendering work search HTML. HTML require additional fields beyond the default search results to display
openlibrary/plugins/worksearch/code.py:75
↓ 2 callers
Function
connect_to_pg
Connects to the postgres database specified in the dictionary `config`. Needs a top level key `db_parameters` and under that `database` (or `d
openlibrary/admin/stats.py:26
↓ 2 callers
Function
convert_key
>>> convert_key("/authors/OL1A", {'/authors/': '/a/'}) '/a/OL1A'
openlibrary/plugins/upstream/adapter.py:24
↓ 2 callers
Function
count
(table, type, key, value)
openlibrary/plugins/ol_infobase.py:145
↓ 2 callers
Method
count_followers
(cls, publisher)
openlibrary/core/follows.py:125
↓ 2 callers
Method
count_following
(cls, subscriber)
openlibrary/core/follows.py:114
↓ 2 callers
Method
count_shelf
(self, key: READING_LOG_KEYS)
openlibrary/plugins/upstream/mybooks.py:553
↓ 2 callers
Function
createElementFromMarkup
* Returns an `HTMLElement` that was created using the given `markup`. * * `markup` is expected to be well-formed, and only have a single root * ele
openlibrary/plugins/openlibrary/js/search.js:155
↓ 2 callers
Function
createListFormMarkup
(isFilled)
tests/unit/js/sample-html/lists-test-data.js:1
↓ 2 callers
Function
createSearchFacets
Creates a dummy search facets section with a list of 'facetEntry' element and a * 'facetMoreLess' section. * * @param {Number} totalFacet tota
tests/unit/js/search.test.js:11
↓ 2 callers
Function
createSelectDataCell
(index, type, values)
openlibrary/plugins/openlibrary/js/add_provider.js:30
↓ 2 callers
Function
createTestElementsForProcessClick
()
tests/unit/js/SelectionManager.test.js:3
↓ 2 callers
Function
createTextInputDataCell
(index, type)
openlibrary/plugins/openlibrary/js/add_provider.js:25
↓ 2 callers
Function
createWorkChart
* * @param {Config} config * @param {ChartConfig} chartConfig * @param {Element} container * @param {HTMLCanvasElement} canvas
openlibrary/plugins/openlibrary/js/readinglog_stats.js:56
↓ 2 callers
Function
create_app
()
openlibrary/asgi_app.py:139
↓ 2 callers
Method
create_authors_from_form_data
Create any __new__ authors in the provided array. Updates the authors dicts _in place_ with the new key. :param list[dict] au
openlibrary/plugins/upstream/addbook.py:145
↓ 2 callers
Function
create_dynamic_document
Creates a handler for `url` for servering combined js/css for `prefix/*` pages
openlibrary/plugins/upstream/code.py:185
↓ 2 callers
Function
create_link_doc
Creates doc required for generating verification link email. The doc contains username, email and a generated code.
openlibrary/accounts/model.py:227
↓ 2 callers
Function
create_local_connection
()
openlibrary/plugins/openlibrary/connection.py:580
↓ 2 callers
Function
create_mock_request
Helper to create a mock FastAPI Request object.
openlibrary/utils/tests/test_request_context.py:15
↓ 2 callers
Function
create_remote_connection
()
openlibrary/plugins/openlibrary/connection.py:587
↓ 2 callers
Method
create_root
(self, root_name)
openlibrary/plugins/openlibrary/opds.py:107
↓ 2 callers
Function
create_sort_option_type
Generates a Pydantic type alias that validates against the provided sorts_map and dynamically generates the OpenAPI Enum documentation.
openlibrary/fastapi/search.py:234
↓ 2 callers
Function
date_range_to_publish_year_filter
(published_in: str)
openlibrary/plugins/worksearch/subjects.py:87
↓ 2 callers
Method
decompress
(*args, **kw)
openlibrary/plugins/upstream/utils.py:1255
↓ 2 callers
Function
defineFocusableElement
(tagName, { renderHTML = '', focusTargetSelector = null } = {})
tests/unit/js/focusableHostMixin.test.js:18
↓ 2 callers
Method
delete
(self, id, redirect_url=None)
openlibrary/coverstore/tests/test_webapp.py:73
↓ 2 callers
Method
delete
Delete this waiting loan from database.
openlibrary/core/waitinglist.py:147
↓ 2 callers
Method
delete_by_username
(cls, username)
openlibrary/core/bookshelves_events.py:212
↓ 2 callers
Method
delete_loan
(self, identifier, userid)
openlibrary/core/lending.py:998
↓ 2 callers
Method
direct_get
(self, fq: Iterable[str] | None = None)
openlibrary/plugins/worksearch/autocomplete.py:56
↓ 2 callers
Function
dirindex
(dir, back="..")
openlibrary/data/sitemap.py:132
↓ 2 callers
Method
dispatchCheckInSubmission
* Dispatches a custom `submit-check-in` event with the given date. * * @param {number} year * @param {number|null} month * @param
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:383
↓ 2 callers
Function
displayIdentifierError
(event, errorMessage)
openlibrary/plugins/openlibrary/js/add-book.js:79
↓ 2 callers
Function
doFetchAndUpdate
* Attempts to fetch HTML for a single carousel, and updates the view * with the results. * * If the request is successful, the given `target` eleme
openlibrary/plugins/openlibrary/js/lazy-carousel.js:52
↓ 2 callers
Function
do_test
(d)
openlibrary/coverstore/tests/test_coverstore.py:91
↓ 2 callers
Function
download_external_image
(url: str)
openlibrary/coverstore/utils.py:106
↓ 2 callers
Function
drop
(s)
openlibrary/catalog/utils/__init__.py:181
↓ 2 callers
Function
east_in_by_statement
Returns False if there is no by_statement in rec. Otherwise returns whether author name uses eastern name order. TODO: elaborate on what
openlibrary/catalog/add_book/load_book.py:78
↓ 2 callers
Function
editions_match
Converts the existing edition into a comparable dict and performs a thresholded comparison to decide whether they are the same. Used by a
openlibrary/catalog/add_book/match.py:18
↓ 2 callers
Method
edits
(self, today, tomorrow, bots=False)
openlibrary/plugins/ol_infobase.py:224
↓ 2 callers
Function
elapsed_time
Two ways to use elapsed_time(): 1. As a decorator to time the execution of an entire function: @elapsed_time("my_slow_function")
openlibrary/utils/dateutil.py:113
↓ 2 callers
Function
esc
(s)
openlibrary/catalog/marc/html.py:9
↓ 2 callers
Function
evaluate_experiments_for_request
Resolves active experiments for a request based on session, IP, and query params.
openlibrary/core/experiments.py:72
↓ 2 callers
Function
extract_agent_counts
(ua_counts, allowed_names=None)
scripts/monitoring/monitor.py:114
↓ 2 callers
Function
extract_year
Extracts the year from an author's birth or death date.
openlibrary/core/helpers.py:317
↓ 2 callers
Function
f
(self, *a, **kw)
openlibrary/mocks/mock_memcache.py:42
↓ 2 callers
Method
facet_wrapper
(self, facet: str, value: str, label: str, count: int)
openlibrary/plugins/worksearch/subjects.py:340
↓ 2 callers
Function
fetchLanguageOptions
({ limit = 500, timeout = 8000 } = {})
openlibrary/plugins/openlibrary/js/search-modal/languages.js:28
← previous
next →
1,001–1,100 of 6,179, ranked by callers