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
Function
stream_docker_logs
(container_name: str)
scripts/monitoring/solr_logs_monitor.py:169
↓ 1 callers
Function
strip_count
(counts)
openlibrary/catalog/utils/__init__.py:238
↓ 1 callers
Function
strip_nones
(d)
openlibrary/plugins/upstream/tests/test_addbook.py:11
↓ 1 callers
Function
subfields
(line)
openlibrary/catalog/marc/html.py:13
↓ 1 callers
Function
subject_name_to_key
(subject_type: Literal["subject", "person", "place", "time"], subject_name: str)
scripts/solr_builder/solr_builder/index_subjects.py:14
↓ 1 callers
Method
submitBatch
* Submits the bulk tagging form and updates the view.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:519
↓ 1 callers
Function
submitObservation
* Submits an observation to the server. * * @param {String} workOlid The OLID for the work being observed. * @param {Object} data Paylo
openlibrary/plugins/openlibrary/js/modals/index.js:442
↓ 1 callers
Method
subscribe
(cls, subscriber, publisher)
openlibrary/core/follows.py:17
↓ 1 callers
Function
success_color_fn
Styles the text for printing to console with success color.
openlibrary/i18n/__init__.py:35
↓ 1 callers
Function
supplement_rec_with_import_item_metadata
Queries for a staged/pending row in `import_item` by identifier, and if found, uses select metadata to supplement empty fields in `rec`.
openlibrary/plugins/importapi/code.py:129
↓ 1 callers
Function
syncRows
* Reflect the selection in this page's radios and row highlights. Revisions * that live on another page simply have no radio here and are skipped
openlibrary/plugins/openlibrary/js/history.js:64
↓ 1 callers
Function
syncSessionStorageFromUrl
* Mirror the current URL's filter state to sessionStorage so the modal opens * with the same selection next time. We always write both keys so removi
openlibrary/plugins/openlibrary/js/SearchFilterBar.js:68
↓ 1 callers
Function
system_memory
Linux-specific. Returns system memory in MB.
scripts/sitemaps/sitemap.py:186
↓ 1 callers
Function
take_best
>>> take_best([], 'min', lambda x: x) [] >>> take_best([3, 2, 1], 'min', lambda x: x) [1] >>> take_best([3, 4, 5], 'max', lambda
openlibrary/utils/__init__.py:45
↓ 1 callers
Function
terminal_underline
(text: str)
scripts/detect_missing_i18n.py:102
↓ 1 callers
Function
test_compressor
>>> test_compressor() # Self-doctest this code.
openlibrary/utils/compress.py:67
↓ 1 callers
Function
tidy_isbn
(input)
openlibrary/catalog/utils/__init__.py:212
↓ 1 callers
Function
time_since
Returns datetime and string representations of the current time, minus the given hour
scripts/gh_scripts/issue_comment_bot.py:309
↓ 1 callers
Method
to_acquisition_access_literal
(self)
openlibrary/book_providers.py:59
↓ 1 callers
Method
to_annotated_seed_dict
(self)
openlibrary/core/lists/model.py:488
↓ 1 callers
Method
to_dict
(self)
scripts/providers/import_wikisource.py:307
↓ 1 callers
Method
to_sentry_name
(self)
openlibrary/utils/sentry.py:162
↓ 1 callers
Method
to_string
(self)
openlibrary/plugins/openlibrary/opds.py:102
↓ 1 callers
Method
to_wikidata_api_json_format
Transforms the dataclass a JSON string like we get from the Wikidata API. This is used for storing the json in the database.
openlibrary/core/wikidata.py:57
↓ 1 callers
Method
toggleAMenuWhileClosingOthers
* Toggle a dropdown menu while closing other dropdown menus. * * @param {Event} event * @param {string} menuButtonId
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableHeader.js:65
↓ 1 callers
Method
toggleComments
* Toggles which comment display is currently visible. * * On page load the comment preview display is visible, while * the full comment
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableRow.js:156
↓ 1 callers
Method
toggleImagePopover
()
openlibrary/components/lit/OLMarkdownEditor.js:539
↓ 1 callers
Method
toggleVisibility
* Toggles the visiblity of active showcase items depending on their seed type. * * If `showWorks` is `true`, the only active showcase items
openlibrary/plugins/openlibrary/js/lists/ShowcaseItem.js:163
↓ 1 callers
Method
toggle_privacy
(cls, publisher, private=True)
openlibrary/core/follows.py:73
↓ 1 callers
Function
token_verification
Checks that the tokens required for this job to run are available in the environment. A GitHub token is always required. A Slack token is r
scripts/gh_scripts/issue_comment_bot.py:355
↓ 1 callers
Function
tokenize
Tokenize python code.:: >>> list(tokenize("x + y")) ['x', ' ', '+', ' ', 'y']
openlibrary/plugins/upstream/jsdef.py:201
↓ 1 callers
Method
transform_user_query
( self, user_query: str, q_tree: luqum.tree.Item, )
openlibrary/plugins/worksearch/schemes/__init__.py:121
↓ 1 callers
Function
trees_equal
Check if the tree data is the same >>> trees_equal(ET.fromstring('<root />'), ET.fromstring('<root />')) True >>> trees_equal(ET.from
openlibrary/i18n/test_po_files.py:12
↓ 1 callers
Function
trim_microsecond
(date)
openlibrary/coverstore/code.py:216
↓ 1 callers
Function
trim_value
Trim strings, lists and dictionaries to remove empty/None values. >>> trim_value("hello ") 'hello' >>> trim_value("") >>> trim_value(
openlibrary/plugins/upstream/addbook.py:507
↓ 1 callers
Function
truncate
Truncate text and add ellipses if it longer than specified limit.
openlibrary/core/helpers.py:203
↓ 1 callers
Function
try_parse_template
(template_text: str, filename: Path)
openlibrary/tests/test_templates.py:26
↓ 1 callers
Method
type
(self)
openlibrary/core/lists/model.py:533
↓ 1 callers
Function
unassignRequest
(mrid)
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestService.js:79
↓ 1 callers
Method
unassignReviewer
* `POST`s request to remove current assignee, then updates the view. * * Hides the assignee display and shows the review button on success.
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableRow.js:260
↓ 1 callers
Method
unassign_request
Changes status of given request to "Pending", and sets reviewer to None.
openlibrary/core/edits.py:234
↓ 1 callers
Method
unblock
Unblocks this account.
openlibrary/accounts/model.py:321
↓ 1 callers
Method
ungettext
(self, singular: str, plural: str, n: int)
openlibrary/tests/core/test_jinja.py:190
↓ 1 callers
Method
updateAndShowNewSubjectAffordance
* Updates the "create subject" affordance with the given subject name, * and shows the affordance if it is hidden. * * @param {String}
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:442
↓ 1 callers
Method
updateCommentViews
* Updates row, setting given comment as most recent. * * First, escapes given comment. Replaces text of comment * preview with escaped
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableRow.js:218
↓ 1 callers
Method
updateDateDisplay
* Updates the date displayed to the given string. * * @param {string} date
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:436
↓ 1 callers
Method
updateDayOptions
* Updates day select options, hiding days greater than the given amount. * * @param {number} daysInMonth
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:680
↓ 1 callers
Method
updateDropdownButtonVisibility
* Updates the visibility of dropdown buttons, hiding the given button. * * All other dropdown buttons will be visible after this method exit
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLogForms.js:271
↓ 1 callers
Method
updateDroppersOnListCreation
* Updates lists section of each dropper with a new list. * * @param {string} listKey Key of the newly created list * @param {string} li
openlibrary/plugins/openlibrary/js/my-books/CreateListForm.js:121
↓ 1 callers
Method
updateFetchedSubjects
* Updates the data structure which contains the fetched works' subjects. * * Meant to be called after the form has been submitted, but befor
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:610
↓ 1 callers
Method
updateMenuOptions
* Creates `MenuOption` affordances for all staged tags, and each existing tag that * was fetched from the server.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:275
↓ 1 callers
Function
updateProgressComponent
* Updates given reading goal progress component with a new * goal. * * @param {HTMLElement} elem A reading goal progress component * @param {Numbe
openlibrary/plugins/openlibrary/js/reading-goals/index.js:164
↓ 1 callers
Method
updateReadingLists
* Replaces dropper loading indicator with the given * partially rendered list affordances. * * @param {string} partialHtml
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:126
↓ 1 callers
Method
updateReadingLog
* POSTs the given form and updates the dropper accordingly. * * @param {HTMLFormElement} form
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLogForms.js:154
↓ 1 callers
Function
updateRow
* Fetches data quality information and updates the given row accordingly. * * @param {HTMLTableRowElement} row A row in the data quality table * @p
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:39
↓ 1 callers
Function
updateSelectedNavItem
()
openlibrary/plugins/openlibrary/js/edition-nav-bar/index.js:29
↓ 1 callers
Function
updateSelectorVisibility
()
openlibrary/plugins/openlibrary/js/signup.js:212
↓ 1 callers
Method
updateShelfDisplay
* Updates this dropper's primary button's state and display to show that a book is active on the * given shelf. * * When we update to t
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:182
↓ 1 callers
Method
updateViewOnAdd
* Adds the given menu option to this container at the given index. * * @param {MenuOption} menuOption The option being attached to the DOM.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:45
↓ 1 callers
Method
updateWorks
* Updates the BulkTagger when works are selected. * * Stores given array in `selectedWorks`, fetches the * existing tags for each given
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:198
↓ 1 callers
Function
update_all_stats
Run through the filters and record requested items in graphite
openlibrary/plugins/openlibrary/stats.py:53
↓ 1 callers
Method
update_completed_batch
(self, start_id)
openlibrary/coverstore/archive.py:280
↓ 1 callers
Function
update_ebook
(ebook_key: str, **data)
openlibrary/core/waitinglist.py:228
↓ 1 callers
Function
update_edition_with_rec_data
Enrich the Edition by adding certain fields present in rec but absent in edition. NOTE: This modifies the passed-in Edition in place.
openlibrary/catalog/add_book/__init__.py:864
↓ 1 callers
Method
update_email
(self, email)
openlibrary/accounts/model.py:311
↓ 1 callers
Method
update_event_date
(cls, pid, event_date)
openlibrary/core/bookshelves_events.py:171
↓ 1 callers
Function
update_import_with_wikidata_api_response
(impt: BookRecord, book_id: str, obj: Any, author_map: dict[str, list[str]])
scripts/providers/import_wikisource.py:512
↓ 1 callers
Function
update_keys
Insert/update the documents with the provided keys in Solr. :param list[str] keys: Keys to update (ex: ["/books/OL1M"]). :param bool com
openlibrary/solr/update.py:55
↓ 1 callers
Method
update_last_login
(self)
openlibrary/accounts/model.py:681
↓ 1 callers
Method
update_password
(self, new_password)
openlibrary/accounts/model.py:308
↓ 1 callers
Function
update_preferences
(keys: list[str])
scripts/migrations/update_legacy_preferences.py:45
↓ 1 callers
Function
update_record_with_wikisource_metadata
(book: BookRecord, book_id: str, new_data: dict, author_map: dict[str, list[str]])
scripts/providers/import_wikisource.py:387
↓ 1 callers
Method
update_request
(username, action="", mrid=None, comment=None)
openlibrary/plugins/upstream/edits.py:203
↓ 1 callers
Method
update_seeds
(self, key, additions, removals)
openlibrary/plugins/openlibrary/tests/test_listapi.py:53
↓ 1 callers
Method
update_waitinglist
(self, identifier, userid, **kwargs)
openlibrary/core/lending.py:1013
↓ 1 callers
Method
update_work_ids_individually
(cls, current_work_id, new_work_id, _test=False)
openlibrary/core/db.py:66
↓ 1 callers
Function
update_work_with_rec_data
Enrich the Work by adding certain fields present in rec but absent in work. NOTE: This modifies the passed-in Work in place.
openlibrary/catalog/add_book/__init__.py:947
↓ 1 callers
Method
upgrade
(self, db)
scripts/migrate_db.py:23
↓ 1 callers
Method
upload
(cls, itemname, filepaths)
openlibrary/coverstore/archive.py:39
↓ 1 callers
Function
urlHasAnyFilterParam
(params)
openlibrary/plugins/openlibrary/js/SearchFilterBar.js:57
↓ 1 callers
Function
urldecode
>>> urldecode('http://google.com/search?q=bar&x=y') ('http://google.com/search', {'q': 'bar', 'x': 'y'}) >>> urldecode('http://google.com
openlibrary/coverstore/utils.py:113
↓ 1 callers
Function
urlsafe
Slugifies the name to produce OL url slugs XXX This is duplicated from openlibrary.core.helpers because there isn't a great way to import the
scripts/sitemaps/sitemap.py:80
↓ 1 callers
Method
use_work_edits
Check if the form data's work OLID matches the form data's edition's work OLID. If they don't, then we ignore the work edits.
openlibrary/plugins/upstream/addbook.py:771
↓ 1 callers
Function
user_can_borrow_edition
Returns the type of borrow for which patron is eligible, favoring "browse" over "borrow" where available, otherwise return False if patron is
openlibrary/plugins/upstream/borrow.py:421
↓ 1 callers
Function
user_can_revert_records
()
openlibrary/plugins/upstream/code.py:247
↓ 1 callers
Method
user_has_read_work
(cls, username: str, work_id: str)
openlibrary/core/bookshelves.py:608
↓ 1 callers
Function
validate
(message: Message, catalog: Catalog)
openlibrary/i18n/validators.py:14
↓ 1 callers
Method
validate
(self, value)
openlibrary/utils/form.py:65
↓ 1 callers
Method
validate
(cls, otp, service_ip, client_email, client_ip, ts)
openlibrary/core/auth.py:151
↓ 1 callers
Function
validateEmail
()
openlibrary/plugins/openlibrary/js/signup.js:111
↓ 1 callers
Function
validateIdentifiers
(data)
openlibrary/plugins/openlibrary/js/edit.js:196
↓ 1 callers
Function
validateIsbn10
(value)
openlibrary/components/IdentifiersInput/utils/utils.js:30
↓ 1 callers
Function
validateIsbn10
* Called by validateIdentifiers(), validates the addition of new * ISBN 10 to an edition. * @param {Object} data data from the input form * @param
openlibrary/plugins/openlibrary/js/edit.js:131
↓ 1 callers
Function
validateIsbn13
(value)
openlibrary/components/IdentifiersInput/utils/utils.js:43
↓ 1 callers
Function
validateIsbn13
* Called by validateIdentifiers(), validates the addition of new * ISBN 13 to an edition. * @param {Object} data data from the input form * @param
openlibrary/plugins/openlibrary/js/edit.js:155
↓ 1 callers
Function
validateLccn
(value)
openlibrary/components/IdentifiersInput/utils/utils.js:57
↓ 1 callers
Function
validateLccn
* Called by validateIdentifiers(), validates the addition of new * LCCN to an edition. * @param {Object} data data from the input form * @param {O
openlibrary/plugins/openlibrary/js/edit.js:179
↓ 1 callers
Function
validatePassword
()
openlibrary/plugins/openlibrary/js/signup.js:145
↓ 1 callers
Function
validateUsername
()
openlibrary/plugins/openlibrary/js/signup.js:72
↓ 1 callers
Method
validate_email
(email)
openlibrary/plugins/upstream/account.py:784
← previous
next →
2,701–2,800 of 6,179, ranked by callers