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
↓ 1 callers
Method
process_result
(self, result)
openlibrary/plugins/worksearch/publishers.py:59
↓ 1 callers
Method
process_result
(self, result)
openlibrary/plugins/worksearch/languages.py:93
↓ 1 callers
Function
process_result_for_details
( result: dict[str, OpenLibraryEditionWithPreview], )
openlibrary/plugins/books/dynlinks.py:445
↓ 1 callers
Function
process_result_for_viewapi
( result: dict[str, OpenLibraryEditionWithPreview], )
openlibrary/plugins/books/dynlinks.py:468
↓ 1 callers
Function
process_stats
Process stats and returns a list of (label, count, time) for each entry. Entries like "memcache.get" and "memcache.set" will be collapsed into "m
openlibrary/plugins/openlibrary/stats.py:116
↓ 1 callers
Function
proxy_to_fastapi
Proxy the current request to the FastAPI container.
openlibrary/plugins/openlibrary/deprecated_handler.py:26
↓ 1 callers
Function
publishToSlack
* Composes a message out of the given `lines` of text, and publishes the * message to the given Slack channel. * * Slack message is composed by joi
scripts/gh_scripts/weekly_status_report.mjs:469
↓ 1 callers
Function
publish_date
(s: str)
openlibrary/catalog/marc/parse.py:398
↓ 1 callers
Function
publish_digest
Creates a threaded Slack messaged containing a digest of recently commented GitHub issues. Parent Slack message will say how many comments w
scripts/gh_scripts/issue_comment_bot.py:209
↓ 1 callers
Function
publish_place
(s: str)
openlibrary/catalog/marc/parse.py:415
↓ 1 callers
Function
publisher_name
(s: str)
openlibrary/catalog/marc/parse.py:409
↓ 1 callers
Function
purge_s3_keys
(dry_run: bool = False)
scripts/purge_s3_keys.py:20
↓ 1 callers
Function
put_file
(con, ia, filename, data)
scripts/lc_marc_update.py:30
↓ 1 callers
Method
q_to_solr_params
( self, q: str, solr_fields: set[str], cur_solr_params: list[tuple[str, str]],
openlibrary/plugins/worksearch/schemes/__init__.py:131
↓ 1 callers
Method
q_to_solr_params
( # noqa: PLR0915, C901 self, q: str, solr_fields: set[str], cur_solr_params:
openlibrary/plugins/worksearch/schemes/works.py:319
↓ 1 callers
Function
query
(**q)
scripts/copydocs.py:288
↓ 1 callers
Function
query
(name, value)
openlibrary/accounts/__init__.py:115
↓ 1 callers
Function
query
(bib_key)
openlibrary/plugins/books/dynlinks.py:159
↓ 1 callers
Method
query_batched
:param str query: :param int size: :param str or None cursor_name: if wanting to use a specific cursor :param bool ca
scripts/solr_builder/solr_builder/solr_builder.py:114
↓ 1 callers
Function
query_docs
Given a list of bib_keys, returns a mapping from bibkey to OL doc.
openlibrary/plugins/books/dynlinks.py:173
↓ 1 callers
Function
query_keys
Given a list of bibkeys, returns a mapping from bibkey to OL key. >> query(["isbn:1234567890"]) {"isbn:1234567890": "/books/OL1M"}
openlibrary/plugins/books/dynlinks.py:152
↓ 1 callers
Function
query_single_thing
Query the counts a single type from the things table
openlibrary/admin/numbers.py:33
↓ 1 callers
Function
random_string
(n)
openlibrary/coverstore/utils.py:162
↓ 1 callers
Method
rate_book
(self, work_key, data)
openlibrary/plugins/openlibrary/tests/test_ratingsapi.py:36
↓ 1 callers
Function
read_args_from_config
(config_path)
scripts/delete_import_items.py:97
↓ 1 callers
Function
read_author_facet
>>> read_author_facet("OL26783A Leo Tolstoy") ('OL26783A', 'Leo Tolstoy')
openlibrary/plugins/worksearch/code.py:256
↓ 1 callers
Function
read_config
(config_path)
scripts/gh_scripts/issue_comment_bot.py:350
↓ 1 callers
Function
read_cookie
()
openlibrary/utils/request_context.py:152
↓ 1 callers
Function
read_cookie
()
openlibrary/plugins/worksearch/code.py:328
↓ 1 callers
Function
read_data_file
max_lines allows us to test the process with a subset of all records. Setting max_lines to 0 will processes all records.
openlibrary/data/dump.py:75
↓ 1 callers
Function
read_image
(d: PartialCoverDetails | db.CoverDbDetails, size)
openlibrary/coverstore/coverlib.py:136
↓ 1 callers
Function
read_isbn
(rec: MarcBase)
openlibrary/catalog/marc/parse.py:213
↓ 1 callers
Method
read_isbn
(self, f: MarcFieldBase)
openlibrary/catalog/marc/marc_base.py:61
↓ 1 callers
Function
read_languages
Read languages from 041, if present, and combine with language from 008:35-37
openlibrary/catalog/marc/parse.py:367
↓ 1 callers
Function
read_lines
(filename)
scripts/copydocs.py:108
↓ 1 callers
Function
read_pagination
(rec: MarcBase)
openlibrary/catalog/marc/parse.py:549
↓ 1 callers
Function
read_query_string
()
openlibrary/utils/request_context.py:149
↓ 1 callers
Function
read_query_string
()
openlibrary/plugins/worksearch/code.py:325
↓ 1 callers
Method
read_records
Reads all the available log records from the server.
scripts/solr_updater/solr_updater.py:80
↓ 1 callers
Method
read_schema
(self, db)
scripts/migrate_db.py:104
↓ 1 callers
Function
read_state_file
(path, initial_state: str | None = None)
scripts/solr_updater/solr_updater.py:39
↓ 1 callers
Method
read_subfields
(self)
openlibrary/catalog/marc/marc_xml.py:52
↓ 1 callers
Function
read_types
()
openlibrary/mocks/mock_infobase.py:404
↓ 1 callers
Function
reading_log_leaderboard
(limit: int)
openlibrary/views/loanstats.py:103
↓ 1 callers
Function
recaptcha_exempt
Check to see if account is an admin, or more than two years old.
openlibrary/plugins/upstream/addbook.py:38
↓ 1 callers
Method
recentchanges
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:75
↓ 1 callers
Method
redeem_otp
(cls, email, otp, originating_ip=None)
openlibrary/accounts/model.py:934
↓ 1 callers
Method
redirect_if_needed
(self, i)
openlibrary/plugins/worksearch/code.py:734
↓ 1 callers
Method
references_to_sql
(self, column_name, value)
openlibrary/utils/schema.py:61
↓ 1 callers
Method
regex_ilike
Construct a regex pattern for ILIKE operation and match against the text.
openlibrary/mocks/mock_infobase.py:221
↓ 1 callers
Function
register_constant
(name, constant)
openlibrary/utils/schema.py:40
↓ 1 callers
Function
rejectMerge
()
openlibrary/plugins/openlibrary/js/merge.js:57
↓ 1 callers
Function
remediate
(test=False)
scripts/migrations/anonymous_store_remediation.py:21
↓ 1 callers
Method
remove
(cls, username: str, work_id: str, bookshelf_id: str | None = None)
openlibrary/core/bookshelves.py:654
↓ 1 callers
Function
removeItem
(listKey, seed)
openlibrary/plugins/openlibrary/js/lists/ListService.js:52
↓ 1 callers
Method
removeSelectedItem
(item)
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:223
↓ 1 callers
Method
removeShowcaseItem
* Sends request to remove an item from a list, then updates the view. * * Removes any affiliated showcase items from the DOM, and updates al
openlibrary/plugins/openlibrary/js/lists/ShowcaseItem.js:113
↓ 1 callers
Function
remove_high_priority
Remove `high_priority=true` and `high_priority=false` from query parameters, as the API expects to pass URL parameters through to another que
openlibrary/plugins/openlibrary/code.py:423
↓ 1 callers
Method
remove_observations
Deletes observations from the observations table. If both observation_type and observation_value are passed, only one row will be del
openlibrary/core/observations.py:1030
↓ 1 callers
Function
remove_seed
* Makes a POST to a `.json` endpoint to remove a seed item from a list. * @param {string} list_key - path to list, ex: /people/openlibrary/lists/OL1L
openlibrary/plugins/openlibrary/js/lists/ListViewBody.js:41
↓ 1 callers
Method
remove_seed
Removes a seed for the list.
openlibrary/core/lists/model.py:130
↓ 1 callers
Method
remove_series_edge
(self, series_key: str)
openlibrary/core/models.py:681
↓ 1 callers
Method
remove_tag
(self, tag)
openlibrary/accounts/model.py:424
↓ 1 callers
Method
remove_user
(self, userkey)
openlibrary/core/models.py:1170
↓ 1 callers
Function
render
(c)
openlibrary/plugins/upstream/utils.py:1351
↓ 1 callers
Method
render
()
openlibrary/plugins/openlibrary/js/lazy-thing-preview.js:103
↓ 1 callers
Function
renderBar
* Render the sticky comparison bar from the selection. The bar is hidden * until at least one revision is picked. Its single button reads *
openlibrary/plugins/openlibrary/js/history.js:88
↓ 1 callers
Function
renderBulkTagger
()
openlibrary/plugins/openlibrary/js/bulk-tagger/index.js:6
↓ 1 callers
Function
renderErrorCell
* Returns an HTML string containing an error message. * * @param {string} href Link to search page for failing query * @returns {string}
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:153
↓ 1 callers
Function
renderPendingCell
* Returns an HTML string containing a loading message. * * @returns {string}
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:164
↓ 1 callers
Function
renderResultsCells
* Returns an HTML string containing the data quality results of the given row. * * @param {Record} results Search results * @param {Number} totalCo
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:121
↓ 1 callers
Function
renderRetryCell
* Returns an HTML string containing a retry button. * * @returns {string} HTML string
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:139
↓ 1 callers
Function
renderRetryLink
* Returns HTML string with error message and retry link. * * @returns {string} HTML for a retry link.
openlibrary/plugins/openlibrary/js/fulltext-search-suggestion.js:60
↓ 1 callers
Function
renderRetryLink
* Returns HTML string with error message and retry link. * * @returns {string} HTML for a retry link.
openlibrary/plugins/openlibrary/js/affiliate-links.js:104
↓ 1 callers
Method
render_download_options
(self, edition: Edition, extra_args: list | None = None)
openlibrary/book_providers.py:603
↓ 1 callers
Method
render_error
(self, error_key, i)
openlibrary/plugins/upstream/account.py:615
↓ 1 callers
Method
render_json
(self, change)
openlibrary/plugins/upstream/recentchanges.py:170
↓ 1 callers
Function
render_list_preview_image
This function takes a list of five books and puts their covers in the correct locations to create a new image for social-card
openlibrary/coverstore/code.py:507
↓ 1 callers
Function
render_macro
(name, args, **kwargs)
openlibrary/plugins/upstream/utils.py:223
↓ 1 callers
Method
render_template
(self, mb: MyBooksTemplate, year: int | None = None)
openlibrary/plugins/upstream/mybooks.py:264
↓ 1 callers
Method
replaceLoadingIndicators
* Replaces list loading indicators with the given partially rendered HTML. * * @param {HTMLElement} dropperListsPlaceholder Loading indicato
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:161
↓ 1 callers
Method
request_loaded
(self)
openlibrary/plugins/openlibrary/stats.py:181
↓ 1 callers
Method
request_unloaded
(self)
openlibrary/plugins/openlibrary/stats.py:186
↓ 1 callers
Method
resetTaggingMenu
* Clears the bulk tagger form.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:634
↓ 1 callers
Function
resize_image
Resizes image to specified size while making sure that aspect ratio is maintained.
openlibrary/coverstore/coverlib.py:104
↓ 1 callers
Function
resolve_identifier
Returns the OL book key for given IA identifier.
openlibrary/core/lending.py:944
↓ 1 callers
Method
resolve_redirects_bulk
batch_size - how many records to fetch per batch start_offset - what offset to start from grace_period_days - ignore redirect
openlibrary/core/models.py:795
↓ 1 callers
Function
rewrite_list_query
Takes a solr query. If it doesn't contain a /lists/ key, then return the query, unchanged, exactly as it entered the function. If it does cont
openlibrary/plugins/worksearch/code.py:1108
↓ 1 callers
Function
row
(r)
openlibrary/plugins/ol_infobase.py:493
↓ 1 callers
Function
run
()
scripts/obfi/shownames.py:30
↓ 1 callers
Function
run
()
openlibrary/plugins/worksearch/tests/test_worksearch.py:215
↓ 1 callers
Method
run
(self)
scripts/delete_import_items.py:46
↓ 1 callers
Function
run_daily_update
(timestamp: str | None = None, dry_run: bool = False)
scripts/solr_updater/trending_updater_daily.py:28
↓ 1 callers
Function
run_hourly_update
(timestamp: str | None = None, dry_run: bool = False)
scripts/solr_updater/trending_updater_hourly.py:289
↓ 1 callers
Function
s3_loan_api
Uses patrons s3 credentials to initiate or return a browse or borrow loan on Archive.org. :param dict s3_keys: {'access': 'xxx', 'secret': 'x
openlibrary/core/lending.py:223
↓ 1 callers
Function
safe_parse_log_entry
(log_line: str)
scripts/monitoring/solr_logs_monitor.py:187
↓ 1 callers
Method
sample_global_error
(self)
openlibrary/tests/solr/test_utils.py:30
↓ 1 callers
Method
sample_individual_error
(self)
openlibrary/tests/solr/test_utils.py:56
↓ 1 callers
Method
sample_response_200
(self)
openlibrary/tests/solr/test_utils.py:14
↓ 1 callers
Method
sample_response_503
(self)
openlibrary/tests/solr/test_utils.py:78
← previous
next →
2,501–2,600 of 6,179, ranked by callers