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
Function
fetch_subject_data
Fetch subject data and convert to dict format. This is the core business logic shared across all subject-type endpoints. Args: key:
openlibrary/fastapi/services/subject_service.py:44
↓ 2 callers
Method
filter_authors
(self, keys)
openlibrary/plugins/upstream/merge_authors.py:219
↓ 2 callers
Method
filter_problematic_subjects
(subjects, filter_unicode=True)
openlibrary/plugins/upstream/models.py:554
↓ 2 callers
Function
find_account
(username=None, lusername=None, email=None)
openlibrary/plugins/upstream/forms.py:21
↓ 2 callers
Method
find_by_identifier
(identifier)
openlibrary/core/imports.py:217
↓ 2 callers
Function
find_image_path
(filename)
openlibrary/coverstore/coverlib.py:119
↓ 2 callers
Function
find_keys
Find any keys in the given dict or list. >>> list(find_keys({'key': 'foo'})) ['foo'] >>> list(find_keys([{}, {'key': 'bar'}])) [
scripts/solr_updater/solr_updater.py:129
↓ 2 callers
Method
find_keys
Returns keys for the effected entries by this change.
openlibrary/olbase/events.py:62
↓ 2 callers
Method
find_lists
Returns the list entries effected by this change. When a list is modified, the data of the user and the data of each seed are invalid
openlibrary/olbase/events.py:82
↓ 2 callers
Function
find_match
Returns the key of an existing tag matching name_or_slug and type, or ''. Accepts either a human-readable name or a slug; Tag.find() normalizes b
openlibrary/plugins/upstream/addtag.py:80
↓ 2 callers
Function
find_match
Use rec to try to find an existing edition key that matches.
openlibrary/catalog/add_book/__init__.py:859
↓ 2 callers
Method
find_series_edge
(self, series_key: str)
openlibrary/core/models.py:674
↓ 2 callers
Function
find_wikisource_src
(rec: dict)
openlibrary/catalog/add_book/__init__.py:449
↓ 2 callers
Method
fix_doc
(self, doc)
openlibrary/plugins/openlibrary/connection.py:493
↓ 2 callers
Function
flip_place
(s: str)
openlibrary/catalog/marc/get_subjects.py:17
↓ 2 callers
Function
fold
Lowercase and strip diacritics so "garcia" matches "García".
openlibrary/plugins/openlibrary/js/search-modal/authorSuggestion.js:24
↓ 2 callers
Function
follow_redirect
(doc)
openlibrary/plugins/upstream/models.py:31
↓ 2 callers
Method
formatList
(type)
openlibrary/components/lit/OLMarkdownEditor.js:506
↓ 2 callers
Method
formatText
(type)
openlibrary/components/lit/OLMarkdownEditor.js:500
↓ 2 callers
Function
format_book_data
(book, fetch_availability=True)
openlibrary/plugins/openlibrary/home.py:307
↓ 2 callers
Function
format_date
Format date as "yyyy-mm-dd" or only "yyyy" :param date: Date in "yyyymmdd" format.
scripts/promise_batch_imports.py:42
↓ 2 callers
Function
format_human_name
(raw_name: str)
scripts/providers/import_wikisource.py:223
↓ 2 callers
Method
from_acquisition_access
(literal: AcquisitionAccessLiteral)
openlibrary/book_providers.py:44
↓ 2 callers
Method
from_db
(list: List, seed: Thing | SeedSubjectString)
openlibrary/core/lists/model.py:414
↓ 2 callers
Method
from_json
(json: dict)
openlibrary/book_providers.py:90
↓ 2 callers
Method
from_json_safe
(json: dict)
openlibrary/book_providers.py:118
↓ 2 callers
Method
from_solr_str
(literal: str)
openlibrary/book_providers.py:37
↓ 2 callers
Function
fulltext_search_async
(q, page=1, offset=None, limit=100, js=False, facets=False)
openlibrary/core/fulltext.py:47
↓ 2 callers
Function
g
(docs)
openlibrary/plugins/admin/code.py:551
↓ 2 callers
Function
generate
This function generates the types.py file.
openlibrary/solr/types_generator.py:15
↓ 2 callers
Function
generate_uuid
()
openlibrary/accounts/model.py:223
↓ 2 callers
Function
getCancelButtonLabelText
()
openlibrary/plugins/openlibrary/js/lists/ListViewBody.js:74
↓ 2 callers
Function
getConfirmButtonLabelText
()
openlibrary/plugins/openlibrary/js/lists/ListViewBody.js:82
↓ 2 callers
Method
getFormAction
* Returns this form's `action` * * @returns {string}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:784
↓ 2 callers
Method
getHandler
()
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:302
↓ 2 callers
Function
getModalContent
* Gets reference to modal content that is associated with the * given modal link. * * @param {JQuery} $modalLink Link that triggers a modal * @ret
openlibrary/plugins/openlibrary/js/modals/index.js:239
↓ 2 callers
Method
getOpenDropper
* @returns {MyBooksDropper}
openlibrary/plugins/openlibrary/js/my-books/store/index.js:68
↓ 2 callers
Function
getTemporaryVueInputPath
(componentName)
openlibrary/components/vite.config.mjs:50
↓ 2 callers
Function
get_abbrev_from_full_lang_name
Take a language name, in English, such as 'English' or 'French' and return 'eng' or 'fre', respectively, if there is one match. If there
openlibrary/plugins/upstream/utils.py:739
↓ 2 callers
Method
get_abspath
e.g. /1/var/lib/openlibrary/coverstore/items/covers_0008/covers_0008_87.zip
openlibrary/coverstore/archive.py:82
↓ 2 callers
Method
get_access
Return the access level of the edition.
openlibrary/book_providers.py:607
↓ 2 callers
Method
get_activation_link
(self)
openlibrary/accounts/model.py:392
↓ 2 callers
Function
get_all_language_counts
( solr_type: Literal["work", "edition"], ebook_access: str | None = None, )
openlibrary/plugins/worksearch/languages.py:41
↓ 2 callers
Method
get_all_subfields
(self)
openlibrary/catalog/marc/marc_base.py:39
↓ 2 callers
Method
get_all_subfields
(self)
openlibrary/catalog/marc/tests/test_marc.py:20
↓ 2 callers
Function
get_all_trending_fields
()
openlibrary/solr/data_provider.py:281
↓ 2 callers
Function
get_api_response
Makes an API GET request to archive.org, collects stats Returns a JSON dict. :param dict params: url parameters
openlibrary/core/ia.py:31
↓ 2 callers
Method
get_aspect_ratio
(self)
openlibrary/core/models.py:87
↓ 2 callers
Method
get_auth_token
(self)
openlibrary/plugins/openlibrary/connection.py:552
↓ 2 callers
Method
get_author_names
(self, blacklist=None)
openlibrary/plugins/upstream/models.py:525
↓ 2 callers
Method
get_awards
Fetches a list of bestbook awards based on the provided filters. This method queries the database to retrieve awards associated with a
openlibrary/core/bestbook.py:64
↓ 2 callers
Method
get_awards
(self)
openlibrary/core/models.py:618
↓ 2 callers
Method
get_batch_unarchived
(self, start_id=None, end_id=None)
openlibrary/coverstore/archive.py:258
↓ 2 callers
Function
get_betterworldbooks_metadata
Automatically tries with ISBN 13 if ISBN 10 fails. :param str isbn: Unnormalisied ISBN10 or ISBN13 :return: Metadata for a single BWB bo
openlibrary/core/vendors.py:807
↓ 2 callers
Function
get_blocked_ips
()
openlibrary/plugins/admin/code.py:508
↓ 2 callers
Function
get_book_provider
(ed_or_solr: Edition | dict)
openlibrary/book_providers.py:807
↓ 2 callers
Method
get_bookshelves_summary
(work_id)
openlibrary/plugins/openlibrary/api.py:146
↓ 2 callers
Function
get_cached_homepage
()
openlibrary/plugins/openlibrary/home.py:57
↓ 2 callers
Function
get_candidate_ocaids
(s3_keys, rows=10_000, idfile=None)
scripts/bulk_load_ia_query.py:145
↓ 2 callers
Function
get_casefold
(item_list: list[str])
openlibrary/catalog/add_book/tests/test_add_book.py:1393
↓ 2 callers
Function
get_category_id
(category)
openlibrary/coverstore/db.py:18
↓ 2 callers
Method
get_comments
Fetches the comments for the given request, or an empty comments object.
openlibrary/core/edits.py:302
↓ 2 callers
Method
get_counts
(cls, username: str)
openlibrary/plugins/upstream/mybooks.py:660
↓ 2 callers
Method
get_counts_by_mode
(cls, mode: ApiMode = "all", **kwargs)
openlibrary/core/edits.py:92
↓ 2 callers
Method
get_cover
(self)
openlibrary/plugins/upstream/models.py:72
↓ 2 callers
Method
get_cover_dimensions
Returns the width and height of the cover with the given ID. :param int cover_id: The ID of the cover. :return: A tuple cont
openlibrary/solr/data_provider.py:229
↓ 2 callers
Function
get_cover_id
Return the first cover from the list of ol keys.
openlibrary/coverstore/code.py:69
↓ 2 callers
Function
get_current_batch
At startup, get the `name` (e.g. amz) openlibrary.core.imports.Batch() for global use.
scripts/affiliate_server.py:331
↓ 2 callers
Function
get_data_provider
Returns the data provider of given type.
openlibrary/solr/data_provider.py:39
↓ 2 callers
Method
get_details
(self, coverid: int, size="")
openlibrary/coverstore/code.py:325
↓ 2 callers
Method
get_dict
(self, key)
openlibrary/plugins/upstream/tests/test_merge_authors.py:50
↓ 2 callers
Method
get_dict
(self)
openlibrary/plugins/importapi/import_edition_builder.py:143
↓ 2 callers
Function
get_doc
Coerce a solr document to look more like an Open Library edition/work. Ish. called from work_search template
openlibrary/plugins/worksearch/code.py:648
↓ 2 callers
Function
get_editions_for_books
Get the OL editions for a list of ISBNs. :param isbns: list of book dicts :return: list of OL editions dicts
scripts/affiliate_server.py:374
↓ 2 callers
Method
get_external_profiles
Get formatted social profile data for all configured social profiles. Returns: List of dicts containing url, icon_url, a
openlibrary/core/wikidata.py:77
↓ 2 callers
Function
get_fail2ban_counts
Returns (currently_failed, currently_banned) counts for the given fail2ban jail.
scripts/monitoring/fail2ban_monitor.py:4
↓ 2 callers
Method
get_feed
(cls, subscriber, limit=25, offset=0)
openlibrary/core/follows.py:83
↓ 2 callers
Method
get_form
(self)
openlibrary/plugins/upstream/account.py:339
↓ 2 callers
Method
get_ia_import_record
Performs logic to fetch archive.org item + metadata, produces a data dict, then loads into Open Library :param str identifie
openlibrary/plugins/importapi/code.py:254
↓ 2 callers
Function
get_ia_item
(ocaid)
openlibrary/catalog/add_book/__init__.py:361
↓ 2 callers
Function
get_ia_s3_keys
Resolve IA S3 creds via infogami config.
openlibrary/core/ia.py:83
↓ 2 callers
Method
get_identifier_forms
Make a list of ISBN 10, ISBN 13, and ASIN, insofar as each is available.
openlibrary/core/models.py:393
↓ 2 callers
Method
get_identifiers
Note: This will only work for solr records if the provider field was fetched in the solr request. (Note: this field is populated from
openlibrary/book_providers.py:578
↓ 2 callers
Method
get_isbn_or_asin
Return a tuple with an ISBN or an ASIN, accompanied by an empty string. If the identifier is an ISBN, it appears in index 0.
openlibrary/core/models.py:377
↓ 2 callers
Function
get_isbns_from_book
(book: dict)
scripts/affiliate_server.py:342
↓ 2 callers
Function
get_isbns_from_books
(books: list[dict])
scripts/affiliate_server.py:346
↓ 2 callers
Method
get_item_status
Returns the status of the item related to importing it in OL. Possible return values are: * ok * not-texts-item * ba
openlibrary/core/ia.py:213
↓ 2 callers
Method
get_key_value_pair
Given a type ID and value ID, returns a key-value pair of the observation's type and value. return: Type and value key-value pair
openlibrary/core/observations.py:878
↓ 2 callers
Function
get_language_name
(lang_or_key: Nothing | str | Thing, user_lang: str)
openlibrary/plugins/upstream/utils.py:1145
↓ 2 callers
Function
get_line
converts a line to a book item
scripts/providers/isbndb.py:159
↓ 2 callers
Function
get_list
(key: str, raw: bool = False)
openlibrary/plugins/openlibrary/lists.py:675
↓ 2 callers
Function
get_list
Return d[key] as some form of list, regardless of if it is or isn't. :param dict or None d: :param str key: :rtype:
openlibrary/solr/updater/work.py:168
↓ 2 callers
Function
get_list_data
(list, seed, include_cover_url=True)
openlibrary/plugins/openlibrary/lists.py:234
↓ 2 callers
Function
get_list_editions
( key: str, url: URL, offset: int = 0, limit: int = 50, )
openlibrary/plugins/openlibrary/lists.py:857
↓ 2 callers
Function
get_list_seeds
(key)
openlibrary/plugins/openlibrary/lists.py:733
↓ 2 callers
Function
get_loan_history_data
Retrieve IA loan history data for page `page` of the patron's history. This will use a patron's S3 keys to query the IA loan history API,
openlibrary/plugins/upstream/account.py:1521
↓ 2 callers
Function
get_loan_key
Get the key for the loan associated with the resource_id
openlibrary/plugins/upstream/borrow.py:385
↓ 2 callers
Method
get_loans
(self)
openlibrary/plugins/upstream/models.py:765
↓ 2 callers
Function
get_loans_of_user
TODO: Remove inclusion of local data; should only come from IA
openlibrary/core/lending.py:652
↓ 2 callers
Function
get_logs_for_hour
(dt: datetime.datetime, extra_grep: str | None = None)
scripts/solr_updater/trending_updater_hourly.py:55
← previous
next →
1,101–1,200 of 6,179, ranked by callers