MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 1 callersMethodprocess_result
(self, result)
openlibrary/plugins/worksearch/publishers.py:59
↓ 1 callersMethodprocess_result
(self, result)
openlibrary/plugins/worksearch/languages.py:93
↓ 1 callersFunctionprocess_result_for_details
( result: dict[str, OpenLibraryEditionWithPreview], )
openlibrary/plugins/books/dynlinks.py:445
↓ 1 callersFunctionprocess_result_for_viewapi
( result: dict[str, OpenLibraryEditionWithPreview], )
openlibrary/plugins/books/dynlinks.py:468
↓ 1 callersFunctionprocess_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 callersFunctionproxy_to_fastapi
Proxy the current request to the FastAPI container.
openlibrary/plugins/openlibrary/deprecated_handler.py:26
↓ 1 callersFunctionpublishToSlack
* 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 callersFunctionpublish_date
(s: str)
openlibrary/catalog/marc/parse.py:398
↓ 1 callersFunctionpublish_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 callersFunctionpublish_place
(s: str)
openlibrary/catalog/marc/parse.py:415
↓ 1 callersFunctionpublisher_name
(s: str)
openlibrary/catalog/marc/parse.py:409
↓ 1 callersFunctionpurge_s3_keys
(dry_run: bool = False)
scripts/purge_s3_keys.py:20
↓ 1 callersFunctionput_file
(con, ia, filename, data)
scripts/lc_marc_update.py:30
↓ 1 callersMethodq_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 callersMethodq_to_solr_params
( # noqa: PLR0915, C901 self, q: str, solr_fields: set[str], cur_solr_params:
openlibrary/plugins/worksearch/schemes/works.py:319
↓ 1 callersFunctionquery
(**q)
scripts/copydocs.py:288
↓ 1 callersFunctionquery
(name, value)
openlibrary/accounts/__init__.py:115
↓ 1 callersFunctionquery
(bib_key)
openlibrary/plugins/books/dynlinks.py:159
↓ 1 callersMethodquery_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 callersFunctionquery_docs
Given a list of bib_keys, returns a mapping from bibkey to OL doc.
openlibrary/plugins/books/dynlinks.py:173
↓ 1 callersFunctionquery_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 callersFunctionquery_single_thing
Query the counts a single type from the things table
openlibrary/admin/numbers.py:33
↓ 1 callersFunctionrandom_string
(n)
openlibrary/coverstore/utils.py:162
↓ 1 callersMethodrate_book
(self, work_key, data)
openlibrary/plugins/openlibrary/tests/test_ratingsapi.py:36
↓ 1 callersFunctionread_args_from_config
(config_path)
scripts/delete_import_items.py:97
↓ 1 callersFunctionread_author_facet
>>> read_author_facet("OL26783A Leo Tolstoy") ('OL26783A', 'Leo Tolstoy')
openlibrary/plugins/worksearch/code.py:256
↓ 1 callersFunctionread_config
(config_path)
scripts/gh_scripts/issue_comment_bot.py:350
↓ 1 callersFunctionread_cookie
()
openlibrary/utils/request_context.py:152
↓ 1 callersFunctionread_cookie
()
openlibrary/plugins/worksearch/code.py:328
↓ 1 callersFunctionread_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 callersFunctionread_image
(d: PartialCoverDetails | db.CoverDbDetails, size)
openlibrary/coverstore/coverlib.py:136
↓ 1 callersFunctionread_isbn
(rec: MarcBase)
openlibrary/catalog/marc/parse.py:213
↓ 1 callersMethodread_isbn
(self, f: MarcFieldBase)
openlibrary/catalog/marc/marc_base.py:61
↓ 1 callersFunctionread_languages
Read languages from 041, if present, and combine with language from 008:35-37
openlibrary/catalog/marc/parse.py:367
↓ 1 callersFunctionread_lines
(filename)
scripts/copydocs.py:108
↓ 1 callersFunctionread_pagination
(rec: MarcBase)
openlibrary/catalog/marc/parse.py:549
↓ 1 callersFunctionread_query_string
()
openlibrary/utils/request_context.py:149
↓ 1 callersFunctionread_query_string
()
openlibrary/plugins/worksearch/code.py:325
↓ 1 callersMethodread_records
Reads all the available log records from the server.
scripts/solr_updater/solr_updater.py:80
↓ 1 callersMethodread_schema
(self, db)
scripts/migrate_db.py:104
↓ 1 callersFunctionread_state_file
(path, initial_state: str | None = None)
scripts/solr_updater/solr_updater.py:39
↓ 1 callersMethodread_subfields
(self)
openlibrary/catalog/marc/marc_xml.py:52
↓ 1 callersFunctionread_types
()
openlibrary/mocks/mock_infobase.py:404
↓ 1 callersFunctionreading_log_leaderboard
(limit: int)
openlibrary/views/loanstats.py:103
↓ 1 callersFunctionrecaptcha_exempt
Check to see if account is an admin, or more than two years old.
openlibrary/plugins/upstream/addbook.py:38
↓ 1 callersMethodrecentchanges
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:75
↓ 1 callersMethodredeem_otp
(cls, email, otp, originating_ip=None)
openlibrary/accounts/model.py:934
↓ 1 callersMethodredirect_if_needed
(self, i)
openlibrary/plugins/worksearch/code.py:734
↓ 1 callersMethodreferences_to_sql
(self, column_name, value)
openlibrary/utils/schema.py:61
↓ 1 callersMethodregex_ilike
Construct a regex pattern for ILIKE operation and match against the text.
openlibrary/mocks/mock_infobase.py:221
↓ 1 callersFunctionregister_constant
(name, constant)
openlibrary/utils/schema.py:40
↓ 1 callersFunctionrejectMerge
()
openlibrary/plugins/openlibrary/js/merge.js:57
↓ 1 callersFunctionremediate
(test=False)
scripts/migrations/anonymous_store_remediation.py:21
↓ 1 callersMethodremove
(cls, username: str, work_id: str, bookshelf_id: str | None = None)
openlibrary/core/bookshelves.py:654
↓ 1 callersFunctionremoveItem
(listKey, seed)
openlibrary/plugins/openlibrary/js/lists/ListService.js:52
↓ 1 callersMethodremoveSelectedItem
(item)
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:223
↓ 1 callersMethodremoveShowcaseItem
* 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 callersFunctionremove_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 callersMethodremove_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 callersFunctionremove_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 callersMethodremove_seed
Removes a seed for the list.
openlibrary/core/lists/model.py:130
↓ 1 callersMethodremove_series_edge
(self, series_key: str)
openlibrary/core/models.py:681
↓ 1 callersMethodremove_tag
(self, tag)
openlibrary/accounts/model.py:424
↓ 1 callersMethodremove_user
(self, userkey)
openlibrary/core/models.py:1170
↓ 1 callersFunctionrender
(c)
openlibrary/plugins/upstream/utils.py:1351
↓ 1 callersMethodrender
()
openlibrary/plugins/openlibrary/js/lazy-thing-preview.js:103
↓ 1 callersFunctionrenderBar
* 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 callersFunctionrenderBulkTagger
()
openlibrary/plugins/openlibrary/js/bulk-tagger/index.js:6
↓ 1 callersFunctionrenderErrorCell
* 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 callersFunctionrenderPendingCell
* Returns an HTML string containing a loading message. * * @returns {string}
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:164
↓ 1 callersFunctionrenderResultsCells
* 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 callersFunctionrenderRetryCell
* Returns an HTML string containing a retry button. * * @returns {string} HTML string
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:139
↓ 1 callersFunctionrenderRetryLink
* 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 callersFunctionrenderRetryLink
* 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 callersMethodrender_download_options
(self, edition: Edition, extra_args: list | None = None)
openlibrary/book_providers.py:603
↓ 1 callersMethodrender_error
(self, error_key, i)
openlibrary/plugins/upstream/account.py:615
↓ 1 callersMethodrender_json
(self, change)
openlibrary/plugins/upstream/recentchanges.py:170
↓ 1 callersFunctionrender_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 callersFunctionrender_macro
(name, args, **kwargs)
openlibrary/plugins/upstream/utils.py:223
↓ 1 callersMethodrender_template
(self, mb: MyBooksTemplate, year: int | None = None)
openlibrary/plugins/upstream/mybooks.py:264
↓ 1 callersMethodreplaceLoadingIndicators
* 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 callersMethodrequest_loaded
(self)
openlibrary/plugins/openlibrary/stats.py:181
↓ 1 callersMethodrequest_unloaded
(self)
openlibrary/plugins/openlibrary/stats.py:186
↓ 1 callersMethodresetTaggingMenu
* Clears the bulk tagger form.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:634
↓ 1 callersFunctionresize_image
Resizes image to specified size while making sure that aspect ratio is maintained.
openlibrary/coverstore/coverlib.py:104
↓ 1 callersFunctionresolve_identifier
Returns the OL book key for given IA identifier.
openlibrary/core/lending.py:944
↓ 1 callersMethodresolve_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 callersFunctionrewrite_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 callersFunctionrow
(r)
openlibrary/plugins/ol_infobase.py:493
↓ 1 callersFunctionrun
()
scripts/obfi/shownames.py:30
↓ 1 callersFunctionrun
()
openlibrary/plugins/worksearch/tests/test_worksearch.py:215
↓ 1 callersMethodrun
(self)
scripts/delete_import_items.py:46
↓ 1 callersFunctionrun_daily_update
(timestamp: str | None = None, dry_run: bool = False)
scripts/solr_updater/trending_updater_daily.py:28
↓ 1 callersFunctionrun_hourly_update
(timestamp: str | None = None, dry_run: bool = False)
scripts/solr_updater/trending_updater_hourly.py:289
↓ 1 callersFunctions3_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 callersFunctionsafe_parse_log_entry
(log_line: str)
scripts/monitoring/solr_logs_monitor.py:187
↓ 1 callersMethodsample_global_error
(self)
openlibrary/tests/solr/test_utils.py:30
↓ 1 callersMethodsample_individual_error
(self)
openlibrary/tests/solr/test_utils.py:56
↓ 1 callersMethodsample_response_200
(self)
openlibrary/tests/solr/test_utils.py:14
↓ 1 callersMethodsample_response_503
(self)
openlibrary/tests/solr/test_utils.py:78
← previousnext →2,501–2,600 of 6,179, ranked by callers